Documentation
¶
Index ¶
- func AutoSyncInterval(v time.Duration) func(*clientv3.Config)
- func Context(v context.Context) func(*clientv3.Config)
- func DialKeepAliveTime(v time.Duration) func(*clientv3.Config)
- func DialKeepAliveTimeout(v time.Duration) func(*clientv3.Config)
- func DialOptions(v []grpc.DialOption) func(*clientv3.Config)
- func MaxCallRecvMsgSize(v int) func(*clientv3.Config)
- func MaxCallSendMsgSize(v int) func(*clientv3.Config)
- func Noop(c *clientv3.Config)
- func Password(v string) func(*clientv3.Config)
- func RejectOldCluster(v bool) func(*clientv3.Config)
- func TLS(v *tls.Config) func(*clientv3.Config)
- func TLSFile(etcdCertFile, etcdKeyFile string) func(*clientv3.Config)
- func Username(v string) func(*clientv3.Config)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoSyncInterval ¶
AutoSyncInterval is the interval to update endpoints with its latest members. 0 disables auto-sync. By default auto-sync is disabled.
func Context ¶
Context is the default client context; it can be used to cancel grpc dial out and other operations that do not have an explicit context.
func DialKeepAliveTime ¶
DialKeepAliveTime is the time after which client pings the server to see if transport is alive.
func DialKeepAliveTimeout ¶
DialKeepAliveTimeout is the time that the client waits for a response for the keep-alive probe. If the response is not received in this time, the connection is closed.
func DialOptions ¶
func DialOptions(v []grpc.DialOption) func(*clientv3.Config)
DialOptions is a list of dial options for the grpc client (e.g., for interceptors).
func MaxCallRecvMsgSize ¶
MaxCallRecvMsgSize is the client-side response receive limit. If 0, it defaults to "math.MaxInt32", because range response can easily exceed request send limits. Make sure that "MaxCallRecvMsgSize" >= server-side default send/recv limit. ("--max-request-bytes" flag to etcd or "embed.Config.MaxRequestBytes").
func MaxCallSendMsgSize ¶
MaxCallSendMsgSize is the client-side request send limit in bytes. If 0, it defaults to 2.0 MiB (2 * 1024 * 1024). Make sure that "MaxCallSendMsgSize" < server-side default send/recv limit. ("--max-request-bytes" flag to etcd or "embed.Config.MaxRequestBytes").
func RejectOldCluster ¶
RejectOldCluster when set will refuse to create a client against an outdated cluster.
Types ¶
This section is empty.