Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WatchWithPrefix ¶
WatchWithPrefix 监听key,带前缀
Types ¶
type Conf ¶
type Conf struct { Enable bool `yaml:"enable" toml:"enable" json:"enable" default:"false"` //是否启用 Endpoints []string `yaml:"endpoints" toml:"endpoints" json:"endpoints"` //地址列表,如: localhost:2379 Username string `yaml:"username" toml:"username" json:"username"` //账号 Password string `yaml:"password" toml:"password" json:"password"` //密码 Timeout int `yaml:"timeout" toml:"timeout" json:"timeout"` //连接超时时间(毫秒)默认10000ms Tls *tls.Config `yaml:"-" toml:"-" json:"-"` //tls配置 }
Click to show internal directories.
Click to hide internal directories.