Documentation ¶
Overview ¶
Package zookeeper implements service Registry and Discovery using zookeeper.
Index ¶
- Variables
- type Content
- type Option
- type Registry
- func (r *Registry) Deregister(ctx context.Context, service gsvc.Service) error
- func (r *Registry) Register(_ context.Context, service gsvc.Service) (gsvc.Service, error)
- func (r *Registry) Search(_ context.Context, in gsvc.SearchInput) ([]gsvc.Service, error)
- func (r *Registry) Watch(ctx context.Context, key string) (gsvc.Watcher, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWatcherStopped = errors.New("watcher stopped")
ErrWatcherStopped is the certain error for watcher closed.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *options)
Option is etcd registry option.
func WithDigestACL ¶
WithDigestACL with registry password.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is consul registry
func (*Registry) Deregister ¶
Deregister off-lines and removes `service` from the Registry.
func (*Registry) Register ¶
Register registers `service` to Registry. Note that it returns a new Service if it changes the input Service with custom one.
Click to show internal directories.
Click to hide internal directories.