Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultRetryCount for etcd operations DefaultRetryCount = 60 // DefaultIntervalBetweenRetries for etcd failed operations DefaultIntervalBetweenRetries = time.Millisecond * 500 // Bootstrap key Bootstrap = "kvdb/bootstrap" // DefaultDialTimeout in etcd http requests // the maximum amount of time a dial will wait for a connection to setup. // 30s is long enough for most of the network conditions. DefaultDialTimeout = 30 * time.Second // DefaultLockTTL is the ttl for an etcd lock DefaultLockTTL = 16 // DefaultLockRefreshDuration is the time interval for refreshing an etcd lock DefaultLockRefreshDuration = 2 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EtcdCommon ¶
type EtcdCommon interface { // GetAuthInfoFromOptions GetAuthInfoFromOptions() (transport.TLSInfo, string, string, error) // GetRetryCount GetRetryCount() int // IsTLSEnabled returns TRUE if SSL is enabled in options IsTLSEnabled() bool }
EtcdCommon defined the common functions between v2 and v3 etcd implementations.
func NewEtcdCommon ¶
func NewEtcdCommon(options map[string]string) EtcdCommon
NewEtcdCommon returns the EtcdCommon interface
Click to show internal directories.
Click to hide internal directories.