Add watcher comments
This commit is contained in:
		| @@ -1,10 +1,15 @@ | |||||||
| package registry | package registry | ||||||
|  |  | ||||||
|  | // Watcher is an interface that returns updates | ||||||
|  | // about services within the registry. | ||||||
| type Watcher interface { | type Watcher interface { | ||||||
|  | 	// Next is a blocking call | ||||||
| 	Next() (*Result, error) | 	Next() (*Result, error) | ||||||
| 	Stop() | 	Stop() | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // Result is returned by a call to Next on | ||||||
|  | // the watcher. Actions can be create, update, delete | ||||||
| type Result struct { | type Result struct { | ||||||
| 	Action  string | 	Action  string | ||||||
| 	Service *Service | 	Service *Service | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user