Documentation ¶
Index ¶
- func NewDiscoveryRegister(envType string) (discoveryregistry.SvcDiscoveryRegistry, error)
- func NewK8sDiscoveryRegister() (discoveryregistry.SvcDiscoveryRegistry, error)
- type K8sDR
- func (cli *K8sDR) AddOption(opts ...grpc.DialOption)
- func (cli *K8sDR) CloseConn(conn *grpc.ClientConn)
- func (cli *K8sDR) CreateRpcRootNodes(serviceNames []string) error
- func (cli *K8sDR) GetClientLocalConns() map[string][]*grpc.ClientConn
- func (cli *K8sDR) GetConfFromRegistry(key string) ([]byte, error)
- func (cli *K8sDR) GetConn(ctx context.Context, serviceName string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
- func (cli *K8sDR) GetConns(ctx context.Context, serviceName string, opts ...grpc.DialOption) ([]*grpc.ClientConn, error)
- func (cli *K8sDR) GetSelfConnTarget() string
- func (cli *K8sDR) Register(serviceName, host string, port int, opts ...grpc.DialOption) error
- func (cli *K8sDR) RegisterConf2Registry(key string, conf []byte) error
- func (cli *K8sDR) UnRegister() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDiscoveryRegister ¶
func NewDiscoveryRegister(envType string) (discoveryregistry.SvcDiscoveryRegistry, error)
func NewK8sDiscoveryRegister ¶
func NewK8sDiscoveryRegister() (discoveryregistry.SvcDiscoveryRegistry, error)
Types ¶
type K8sDR ¶
type K8sDR struct {
// contains filtered or unexported fields
}
func (*K8sDR) AddOption ¶
func (cli *K8sDR) AddOption(opts ...grpc.DialOption)
func (*K8sDR) CloseConn ¶
func (cli *K8sDR) CloseConn(conn *grpc.ClientConn)
func (*K8sDR) CreateRpcRootNodes ¶
func (*K8sDR) GetClientLocalConns ¶
func (cli *K8sDR) GetClientLocalConns() map[string][]*grpc.ClientConn
do not use this method for call rpc
func (*K8sDR) GetConfFromRegistry ¶
func (*K8sDR) GetConn ¶
func (cli *K8sDR) GetConn(ctx context.Context, serviceName string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
func (*K8sDR) GetConns ¶
func (cli *K8sDR) GetConns(ctx context.Context, serviceName string, opts ...grpc.DialOption) ([]*grpc.ClientConn, error)
func (*K8sDR) GetSelfConnTarget ¶
func (*K8sDR) RegisterConf2Registry ¶
func (*K8sDR) UnRegister ¶
Click to show internal directories.
Click to hide internal directories.