Update the watch interface

This commit is contained in:
Asim
2015-12-05 01:12:29 +00:00
parent cc6555927d
commit d4f3a6070c
4 changed files with 126 additions and 52 deletions

11
registry/watcher.go Normal file
View File

@@ -0,0 +1,11 @@
package registry
type Watcher interface {
Next() (*Result, error)
Stop()
}
type Result struct {
Action string
Service *Service
}