/*
MonitorExportedService creates a new monitor for updates on the given
baseString in the specified etcdClient. See the documentation of the
ExportedServiceNotificationReceiver interface for more details.
*/
MonitorExportedService creates a new monitor for updates on the given
baseString in the specified etcdClient. See the documentation of the
ExportedServiceNotificationReceiver interface for more details.
/ * MonitorExportedService creates a new monitor for updates on the given baseString in the specified etcdClient . See the documentation of the ExportedServiceNotificationReceiver interface for more details . * /
func MonitorExportedService(
	kv etcd.KV, watcher etcd.Watcher, basePath string,
	receiver ExportedServiceNotificationReceiver) {
	var path string
	if basePath[0] == '/' {
		path = basePath
	} else {
		path = "/ns/service/" + basePath
	}
	var mon = &exportedServiceMonitor{
		basePath:    path,
		etcdKV:      kv,
		etcdWatcher: watcher,
		receiver:    receiver,
	}
	go mon.monitor()
}
func MonitorExportedService ( kv etcd . KV , watcher etcd . Watcher , basePath string , receiver ExportedServiceNotificationReceiver ) { var path string if basePath [ 0 ] == '/' { path = basePath } else { path = " " + basePath } var mon = & exportedServiceMonitor { basePath : path , etcdKV : kv , etcdWatcher : watcher , receiver : receiver , } go mon . monitor ( ) }
MonitorExportedService creates a new monitor for updates on the given
baseString in the specified etcdClient.
MonitorExportedService creates a new monitor for updates on the given baseString in the specified etcdClient .