Update the watch interface
This commit is contained in:
11
registry/watcher.go
Normal file
11
registry/watcher.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package registry
|
||||
|
||||
type Watcher interface {
|
||||
Next() (*Result, error)
|
||||
Stop()
|
||||
}
|
||||
|
||||
type Result struct {
|
||||
Action string
|
||||
Service *Service
|
||||
}
|
Reference in New Issue
Block a user