gossip registry

This commit is contained in:
Asim Aslam
2018-12-04 16:41:40 +00:00
parent d0d8db7c45
commit 57dcba666e
9 changed files with 775 additions and 0 deletions

View File

@@ -28,7 +28,10 @@ type WatchOption func(*WatchOptions)
var (
DefaultRegistry = newConsulRegistry()
// Not found error when GetService is called
ErrNotFound = errors.New("not found")
// Watcher stopped error when watcher is stopped
ErrWatcherStopped = errors.New("watcher stopped")
)
func NewRegistry(opts ...Option) Registry {