docs: add comprehensive client API reference
This commit is contained in:
@@ -23,11 +23,11 @@
|
||||
|
||||
1. 校验 --workspace 并读取 etc/<workspace>_<runtime>.yaml。
|
||||
2. 初始化共享 DB、Redis、etcd 和内存缓存。
|
||||
3. 创建统一 gRPC、grpc-gateway 和 Gin server。
|
||||
3. 创建独立端口的 gRPC server,以及承载 grpc-gateway、动态 RPC 和 Gin 的 HTTP server。
|
||||
4. 按 Services 或 BSM_SERVICES 调用模块 Expose。
|
||||
5. 在一个 h2c 端口启动,并响应退出信号。
|
||||
5. 分别监听 `Server.GRPC` 和 `Server.HTTP` 配置的地址,并响应退出信号。
|
||||
|
||||
请求先按 gRPC Content-Type 分流;普通请求先进入 grpc-gateway,gateway 返回 404 时回退到 Gin。
|
||||
HTTP 请求先进入 grpc-gateway;gateway 返回 404 时回退到 Gin。Gin 提供 `/rpc/{package}/{service}/{method}` 动态 JSON-to-protobuf unary 调用,以及 `/rest/{module}/...` 原生 REST 路由。动态调用通过本机 gRPC 端口进入完整 gRPC 处理链。
|
||||
|
||||
## 依赖注入
|
||||
|
||||
|
||||
Reference in New Issue
Block a user