Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEtcdClient ¶
NewEtcdClient creates a new etcd client. etcdDsn: connect string like etcd://user:password@host:port?useTls=true&certFile=xxx&keyFile=xxx&caCertFile=xxx&timeout=xxx
Types ¶
type EtcdConfig ¶
type EtcdConfig struct { Host string Username string Password string UseTls bool CertFile string KeyFile string CaCertFile string Timeout int }
func ParseEtcdCfg ¶
func ParseEtcdCfg(host string) (*EtcdConfig, error)
Click to show internal directories.
Click to hide internal directories.