lease增加永久续期支持

This commit is contained in:
2021-11-23 20:02:15 +08:00
parent 29cb4a4fba
commit a9eabd0f19
3 changed files with 62 additions and 0 deletions

View File

@ -44,3 +44,6 @@ type CancelWatcherHandler func(key string, data interface{})
// TimeoutWatcherHandler 超时之后的回调函数
type TimeoutWatcherHandler func(key string, timeout time.Duration)
// LeaseKeepALiveHandler 续期成功的处理
type LeaseKeepALiveHandler func(key string, leaseDetail *clientv3.LeaseKeepAliveResponse)