Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRpcClientComponent ¶
func (*GRpcClientComponent) GetConn ¶
func (comp *GRpcClientComponent) GetConn() *grpc.ClientConn
get connect, use this conn to create GRpc Service
func (*GRpcClientComponent) Init ¶
func (comp *GRpcClientComponent) Init(confI camStatics.ComponentConfigInterface)
init conf
type GRpcClientComponentConfig ¶
type GRpcClientComponentConfig struct { component.ComponentConfig Option }
gRpc client component's conf
func (*GRpcClientComponentConfig) SetOption ¶
func (conf *GRpcClientComponentConfig) SetOption(option *Option)
set Option
type Option ¶
type Option struct { LoadBalancingLogic camStatics.GRpcLoadBalancingLogic // Server config Servers []*Server }
client options
type Server ¶
type Server struct { // addr // Example: "localhost:50051" Addr string // dial options // Example: grpc.WithInsecure(), grpc.WithBlock() DialOptions []grpc.DialOption }
server struct
Click to show internal directories.
Click to hide internal directories.