Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "watcher"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cfg ¶
func DefaultCfg ¶
func DefaultCfg() Cfg
type Watcher ¶
type Watcher interface { Name() string Close(ctx context.Context, opts ...Opt) Get(ctx context.Context, key string, opts ...Opt) ([]*Response, error) GetCallback(ctx context.Context, key string, fn func(resp *Response), opts ...Opt) error Watch(ctx context.Context, key string, opts ...Opt) <-chan *Response WatchCallback(ctx context.Context, key string, fn func(resp *Response), opts ...Opt) }
Watcher ...
Click to show internal directories.
Click to hide internal directories.