Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Key string // 需要观察的键 Endpoints []string `json:",optional"` // 节点列表 Username string `json:",optional"` // 用户名 Password string `json:",optional"` // 密码 }
Config etcd 观察器配置
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher etcd 观察器
func MustNewWatcher ¶
MustNewWatcher 新建 etcd 观察器
func NewWatcher ¶
NewWatcher 新建 etcd 观察器
func (*Watcher) SetUpdateCallback ¶
SetUpdateCallback 设置 etcd 更新回调函数
Click to show internal directories.
Click to hide internal directories.