Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWatcher ¶
func NewWatcher(client *redis.Client, setters ...WatcherOption) persist.Watcher
NewWatcher return new watcher service.
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is the watcher service.
func (*Watcher) SetUpdateCallback ¶
SetUpdateCallBack sets the update callback function invoked by the watcher when the data is updated.
type WatcherOption ¶
type WatcherOption func(*WatcherOptions)
func RaiseOwn ¶
func RaiseOwn(filterOwn bool) WatcherOption
type WatcherOptions ¶
type WatcherOptions struct {
RaiseOwn bool
}
Click to show internal directories.
Click to hide internal directories.