Files
token-go/persist/watcher_update.go
2023-10-21 15:46:21 +08:00

12 lines
426 B
Go

package persist
// UpdatableWatcher called when data updated
type UpdatableWatcher interface {
UpdateForSetStr(key string, value string, timeout int64) error
UpdateForUpdateStr(key string, value string) error
UpdateForSet(key string, value interface{}, timeout int64) error
UpdateForUpdate(key string, value interface{}) error
UpdateForDelete(key string) error
UpdateForUpdateTimeout(key string, timeout int64) error
}