Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultRegistry = NewMemory() // ErrWatcherStopped error when watcher is stopped. ErrWatcherStopped = errors.New("watcher stopped") )
Functions ¶
This section is empty.
Types ¶
type Registry ¶
Registry The registry provides an interface for service discovery and an abstraction over varying implementations {consul, etcd, zookeeper, ...}.
type Result ¶ added in v1.0.5
type Result struct { Action string Service *registry.ServiceInstance }
Result is returned by a call to Next on the watcher. Actions can be create, update, delete.
Click to show internal directories.
Click to hide internal directories.