Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface { GetConns(ctx context.Context, serviceName string, opts ...grpc.DialOption) ([]*grpc.ClientConn, error) GetConn(ctx context.Context, serviceName string, opts ...grpc.DialOption) (*grpc.ClientConn, error) GetSelfConnTarget() string AddOption(opts ...grpc.DialOption) CloseConn(conn *grpc.ClientConn) GetClientLocalConns() map[string][]*grpc.ClientConn //del GetUserIdHashGatewayHost(ctx context.Context, userId string) (string, error) //del }
type SvcDiscoveryRegistry ¶
type SvcDiscoveryRegistry interface { Conn Register(serviceName, host string, port int, opts ...grpc.DialOption) error UnRegister() error //del CreateRpcRootNodes(serviceNames []string) error //del RegisterConf2Registry(key string, conf []byte) error //del GetConfFromRegistry(key string) ([]byte, error) //del Close() }
Click to show internal directories.
Click to hide internal directories.