Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultResponseTimeout specifies the default time limit to wait for response // header in a single request made by an etcd client DefaultResponseTimeout = 1 * time.Second // DefaultDialTimeout is default TCP connect timeout DefaultDialTimeout = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Endpoints lists etcd server endpoints (http://host:port) Endpoints []string // CAFile defines the SSL Certificate Authority file to used // to secure etcd communication CAFile string // CertFile defines the SSL certificate file to use to secure // etcd communication CertFile string // KeyFile defines the SSL key file to use to secure etcd communication KeyFile string // HeaderTimeoutPerRequest specifies the time limit to wait for response // header in a single request made by a client HeaderTimeoutPerRequest time.Duration // DialTimeout is dial timeout DialTimeout time.Duration }
Config defines the configuration to access etcd
func (*Config) CheckAndSetDefaults ¶
Click to show internal directories.
Click to hide internal directories.