Documentation
¶
Overview ¶
Package gxetcd provides an etcd version 3 gxregistry
Package gxetcd provides an etcd version 3 gxregistry ref: https://github.com/micro/go-plugins/blob/master/gxregistry/etcdv3/etcdv3.go
Index ¶
- func NewRegistry(opts ...gxregistry.Option) (gxregistry.Registry, error)
- func NewWatcher(client *gxetcd.Client, opts ...gxregistry.WatchOption) (gxregistry.Watcher, error)
- type Registry
- func (r *Registry) Client() *gxetcd.Client
- func (r *Registry) Close() error
- func (r *Registry) Deregister(s gxregistry.Service) error
- func (r *Registry) GetServices(attr gxregistry.ServiceAttr) ([]gxregistry.Service, error)
- func (r *Registry) Options() gxregistry.Options
- func (r *Registry) Register(s gxregistry.Service) error
- func (r *Registry) String() string
- func (r *Registry) Watch(opts ...gxregistry.WatchOption) (gxregistry.Watcher, error)
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRegistry ¶
func NewRegistry(opts ...gxregistry.Option) (gxregistry.Registry, error)
func NewWatcher ¶
func NewWatcher(client *gxetcd.Client, opts ...gxregistry.WatchOption) (gxregistry.Watcher, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.