package
0.0.0-20241209060253-74832168667a
Repository: https://github.com/joyparty/nodehub.git
Documentation: pkg.go.dev

# Functions

BindGRPCServer 绑定grpc服务器.
ErrorWithDetail adds details to an existing error.
GatewayIDInContext 从context中获取gateway id.
LogUnary 打印unary请求日志.
NewError creates a new error with the given code and message.
NewGRPCServer 构造函数.
PackReply 自动把返回值转换为nodehub.Reply.
SessionIDInContext 从context中获取session id.
WithAllocation 设置节点分配方式.
WithBalancer 设置负载均衡策略.
WithPublic 设置服务为公开.
WithStateful 设置服务为有状态.
WithWeight 设置节点权重.

# Constants

MDGateway grpc metadata中的gateway key,用于标识请求来自哪个网关.
MDSessID grpc metadata中的session id key.
MDTransactionID grpc metadata中的transaction id key,用于跟踪请求.

# Structs

GRPCServer grpc服务.

# Type aliases

Option 配置.