Documentation
¶
Index ¶
- type SvcDiscoveryRegistryImpl
- func (r *SvcDiscoveryRegistryImpl) AddOption(opts ...grpc.DialOption)
- func (r *SvcDiscoveryRegistryImpl) Close()
- func (r *SvcDiscoveryRegistryImpl) CloseConn(conn *grpc.ClientConn)
- func (r *SvcDiscoveryRegistryImpl) GetConn(ctx context.Context, serviceName string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
- func (r *SvcDiscoveryRegistryImpl) GetConns(ctx context.Context, serviceName string, opts ...grpc.DialOption) ([]*grpc.ClientConn, error)
- func (r *SvcDiscoveryRegistryImpl) GetSelfConnTarget() string
- func (r *SvcDiscoveryRegistryImpl) Register(serviceName, host string, port int, opts ...grpc.DialOption) error
- func (r *SvcDiscoveryRegistryImpl) UnRegister() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SvcDiscoveryRegistryImpl ¶
type SvcDiscoveryRegistryImpl struct {
// contains filtered or unexported fields
}
SvcDiscoveryRegistryImpl implementation
func NewSvcDiscoveryRegistry ¶
func NewSvcDiscoveryRegistry(schema string, endpoints []string) (*SvcDiscoveryRegistryImpl, error)
func (*SvcDiscoveryRegistryImpl) AddOption ¶
func (r *SvcDiscoveryRegistryImpl) AddOption(opts ...grpc.DialOption)
func (*SvcDiscoveryRegistryImpl) Close ¶
func (r *SvcDiscoveryRegistryImpl) Close()
func (*SvcDiscoveryRegistryImpl) CloseConn ¶
func (r *SvcDiscoveryRegistryImpl) CloseConn(conn *grpc.ClientConn)
func (*SvcDiscoveryRegistryImpl) GetConn ¶
func (r *SvcDiscoveryRegistryImpl) GetConn(ctx context.Context, serviceName string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
func (*SvcDiscoveryRegistryImpl) GetConns ¶
func (r *SvcDiscoveryRegistryImpl) GetConns(ctx context.Context, serviceName string, opts ...grpc.DialOption) ([]*grpc.ClientConn, error)
func (*SvcDiscoveryRegistryImpl) GetSelfConnTarget ¶
func (r *SvcDiscoveryRegistryImpl) GetSelfConnTarget() string
func (*SvcDiscoveryRegistryImpl) Register ¶
func (r *SvcDiscoveryRegistryImpl) Register(serviceName, host string, port int, opts ...grpc.DialOption) error
func (*SvcDiscoveryRegistryImpl) UnRegister ¶
func (r *SvcDiscoveryRegistryImpl) UnRegister() error
Click to show internal directories.
Click to hide internal directories.