package
0.1.0
Repository: https://github.com/golang-tools/etcdhelper.git
Documentation: pkg.go.dev

# Functions

New 创建一个新的数据库客户端代理.
UseEtcdOpts 设置etcd的连接项.
WithAutoSyncInterval 设置etcd连接的最大自动同步周期@params iterval int 最大自动同步周期,单位ms.
WithDialKeepAliveTime 设置etcd连接的拨号存活时长@params alivetime int 拨号存活时长,单位ms.
WithDialKeepAliveTimeout 设置etcd连接的拨号存活超时时长@params timeout int 拨号存活超时时长,单位ms.
WithDialTimeout 设置etcd连接的拨号超时时间@params timeout int 拨号超时时间,单位ms.
WithEtcdConnConfig 设置etcd的连接项@params conf *clientv3.Config etcd的连接配置.
WithMaxCallRecvMsgSize 设置etcd连接的最大接收消息大小@params size int 最大接收消息大小,单位bytes.
WithMaxCallSendMsgSize 设置etcd连接的最大发送消息大小@params size int 最大发送消息大小,单位bytes.
WithParallelCallback 设置callback并行执行.
WithPassword 设置etcd连接的密码@params pwd string 密码.
WithPermitWithoutStream 设置etcd连接允许没有流.
WithQueryTimeout 设置最大过期时间,单位ms@params timeout int 请求etcd的最大超时,单位ms.
WithRejectOldCluster 设置etcd连接拒绝旧集群.
WithUsername 设置etcd连接的用户名@params username string 用户名.

# Variables

Default 默认的etcd代理对象.
No description provided by the author
ErrProxyAllreadySettedClient 代理已经设置过redis客户端对象.
ErrProxyNotYetSettedClient 代理还未设置客户端对象.
No description provided by the author

# Structs

EtcdProxyredis客户端的代理.
Option 设置key行为的选项@attribute MaxTTL time.Duration 为0则不设置过期@attribute AutoRefresh string 需要为crontab格式的字符串,否则不会自动定时刷新.

# Type aliases

Callback redis操作的回调函数.