From 011a3dc9e3e6eee655e0308af24322f2ff5312c8 Mon Sep 17 00:00:00 2001 From: Asim Date: Sat, 5 Dec 2015 02:05:06 +0000 Subject: [PATCH] Add watcher comments --- registry/watcher.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/registry/watcher.go b/registry/watcher.go index c26cc04d..eeb6e246 100644 --- a/registry/watcher.go +++ b/registry/watcher.go @@ -1,10 +1,15 @@ package registry +// Watcher is an interface that returns updates +// about services within the registry. type Watcher interface { + // Next is a blocking call Next() (*Result, error) Stop() } +// Result is returned by a call to Next on +// the watcher. Actions can be create, update, delete type Result struct { Action string Service *Service