Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "etcdv3"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct { Endpoints []string `json:"endpoints"` AutoSyncInterval time.Duration `json:"auto_sync_interval"` DialTimeout time.Duration `json:"dial_timeout"` DialKeepAliveTime time.Duration `json:"dial_keep_alive_time"` DialKeepAliveTimeout time.Duration `json:"dial_keep_alive_timeout"` MaxCallSendMsgSize int `json:"max_send_size"` MaxCallRecvMsgSize int `json:"max_recv_size"` Username string `json:"username"` Name string `json:"name"` Password string `json:"password"` RejectOldCluster bool `json:"reject_old_cluster"` PermitWithoutStream bool `json:"permit_without_stream"` DialOptions []grpc.DialOption `json:"-"` // contains filtered or unexported fields }
func DefaultCfg ¶ added in v0.1.26
func DefaultCfg() *Cfg
Click to show internal directories.
Click to hide internal directories.