Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v0.3.2
type Config struct {
// Username 是 etcd 访问用户名。
Username string `json:"account"`
// Password 是 etcd 访问密码。
Password string `json:"password"`
// Endpoint 是 etcd 节点地址列表。
Endpoint []string `json:"endpoint"`
// Tls 是可选 TLS 连接配置。
Tls *tlsx.TLS `json:"tls"`
}
Config 定义 etcd 客户端初始化配置。
Click to show internal directories.
Click to hide internal directories.