Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeEvent ¶
type EventType ¶
type EventType byte
const EventTypeDelete EventType = 1
const EventTypeUpdate EventType = 0
type General ¶
type General struct {
// contains filtered or unexported fields
}
General a base watcher this will be use for most watchers
func (*General) WatchEtcd ¶
func (w *General) WatchEtcd(ctx context.Context) (ch chan *WatcherEvent, err error)
WatchEtcd start watch etcd changes
func (*General) WatchEtcdList ¶
func (w *General) WatchEtcdList(ctx context.Context) (ch chan *WatcherEvent, err error)
WatchEtcdList start watch etcd changes for list
type RedisWatcher ¶
type RedisWatcher struct {
// contains filtered or unexported fields
}
func (*RedisWatcher) WatchNode ¶
func (watcher *RedisWatcher) WatchNode(ctx context.Context) chan node.Node
func (*RedisWatcher) WatchPipelinBind ¶
func (watcher *RedisWatcher) WatchPipelinBind(ctx context.Context) chan model.PipelineBind
type Watcher ¶
type Watcher interface {
// Watch(ctx context.Context, key string) (chan model.Model, error)
// WtachList(ctx context.Context, key string) (chan model.Model, error)
WatchPipelinBind(ctx context.Context) chan model.PipelineBind
WatchNode(ctx context.Context) chan node.Node
}
Watcher a wrapper for etcd watcher
type WatcherEvent ¶
Click to show internal directories.
Click to hide internal directories.