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

View File

@@ -8,10 +8,6 @@ type Registry interface {
Watch() (Watcher, error)
}
type Watcher interface {
Stop()
}
type options struct{}
type Option func(*options)
@@ -39,3 +35,7 @@ func GetService(name string) ([]*Service, error) {
func ListServices() ([]*Service, error) {
return DefaultRegistry.ListServices()
}
func Watch() (Watcher, error) {
return DefaultRegistry.Watch()
}