Esempio n. 1
0
// WatchStop stops a watch.
func (c *Client) WatchStop(obj db.Entity) error {
	path, err := obj.Path()
	if err != nil {
		return err
	}

	return helpers.WatchStop(c, path, c.watchers, &c.watcherMutex)
}
Esempio n. 2
0
// WatchPrefixStop stops a watch.
func (c *Client) WatchPrefixStop(obj db.Entity) error {
	return helpers.WatchStop(c, obj.Prefix(), c.watchers, &c.watcherMutex)
}