Documentation
¶
Overview ¶
Package grpcclient 提供服务间 gRPC 调用的统一封装: discovery 寻址 + 连接池 + 超时 + tenant/trace metadata 注入 + 业务错误解包。
前置:调用前需先 discovery.Init(cfgDir)(解析各服务地址)与加载配置。
Index ¶
Constants ¶
View Source
const ( IdentityhubSvr = "identityhubsvr" TenantManagerSvr = "tenantmanagersvr" )
后端服务名常量(discovery.json 的 key)。 集中维护:新增后端服务时在此加一个常量,供 grpcclient.Call(ctx, svcName, ...) 按服务名解析地址。
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.