Documentation ¶
Index ¶
- func Auth(username, password string) registry.Option
- func NewEtcdRegistry(client *clientv3.Client, opts ...registry.Option) registry.Registry
- func NewRegistry(opts ...registry.Option) registry.Registry
- type Registry
- func (e *Registry) Deregister(ctx context.Context, s *registry.Service, opts ...registry.DeregisterOption) error
- func (e *Registry) GetConn() *clientv3.Client
- func (e *Registry) GetService(ctx context.Context, name string, opts ...registry.GetOption) ([]*registry.Service, error)
- func (e *Registry) Init(opts ...registry.Option) error
- func (e *Registry) ListServices(ctx context.Context, opts ...registry.ListOption) ([]*registry.Service, error)
- func (e *Registry) Options() registry.Options
- func (e *Registry) Register(ctx context.Context, s *registry.Service, opts ...registry.RegisterOption) error
- func (e *Registry) String() string
- func (e *Registry) Watch(ctx context.Context, opts ...registry.WatchOption) (registry.Watcher, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEtcdRegistry ¶ added in v1.4.9
Types ¶
type Registry ¶ added in v1.6.18
func (*Registry) Deregister ¶ added in v1.6.18
func (*Registry) GetService ¶ added in v1.6.18
func (*Registry) ListServices ¶ added in v1.6.18
Click to show internal directories.
Click to hide internal directories.