#189 add Close method for discovery

This commit is contained in:
smallnest
2017-12-19 13:39:00 +08:00
parent 9fe3c9425f
commit 6ad849fc53
8 changed files with 166 additions and 70 deletions

View File

@@ -50,6 +50,7 @@ type ServiceDiscovery interface {
WatchService() chan []*KVPair
RemoveWatcher(ch chan []*KVPair)
Clone(servicePath string) ServiceDiscovery
Close()
}
type xClient struct {