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。 conn 在构造后不可变,无需互斥锁保护。
func NewConnection ¶
func NewConnection(conn *gogrpc.ClientConn) *Connection
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.