增加监听一次key变化的处理
This commit is contained in:
@ -41,3 +41,6 @@ type WatcherHandler func(event *clientv3.Event)
|
||||
|
||||
// CancelWatcherHandler 取消监听后的处理函数
|
||||
type CancelWatcherHandler func(key string, data interface{})
|
||||
|
||||
// TimeoutWatcherHandler 超时之后的回调函数
|
||||
type TimeoutWatcherHandler func(key string, timeout time.Duration)
|
||||
|
Reference in New Issue
Block a user