etcd

package
v0.0.49-alpha.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 11

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL