增加随时可取消的watch监控能力
This commit is contained in:
@ -38,3 +38,6 @@ const (
|
||||
|
||||
// WatcherHandler 监听key变化的处理函数
|
||||
type WatcherHandler func(event *clientv3.Event)
|
||||
|
||||
// CancelWatcherHandler 取消监听后的处理函数
|
||||
type CancelWatcherHandler func(key string, data interface{})
|
||||
|
Reference in New Issue
Block a user