Documentation
¶
Index ¶
Constants ¶
View Source
const Type = "grpc"
Variables ¶
This section is empty.
Functions ¶
func BuildClientConfigIndex ¶
BuildClientConfigIndex 预构建 gRPC 客户端配置索引,避免热路径重复遍历配置列表。
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection gRPC 连接封装,实现 runtime.Connection。
func NewConnection ¶
func NewConnection(conn gogrpc.ClientConnInterface) *Connection
func (*Connection) Close ¶
func (g *Connection) Close() error
func (*Connection) IsHealthy ¶
func (g *Connection) IsHealthy() bool
func (*Connection) Value ¶
func (g *Connection) Value() any
Click to show internal directories.
Click to hide internal directories.