package
0.0.0-20240921075318-a8c716a2f2d8
Repository: https://github.com/8xmx8/easier.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewETCD 创建ETCD客户端.
No description provided by the author
No description provided by the author
NewProvider 创建一个Provider.
No description provided by the author
WithBaseAuth 基础鉴权.
WithDialKeepAliveTime 客户端超时时间.
Withlogger 配置logger.

# Constants

No description provided by the author
ETCD 操作类型.
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
Election 用来进行选举,如果成功,就会通过回调函数返回选举成功,默认情况下,当前节点不是主节点.
No description provided by the author
No description provided by the author
No description provided by the author
Provider 注册一个Key,并且随时保持心跳,对象同样有Start和Stop函数.
No description provided by the author
Watcher 对象,用于监听一个Key的变化对象,这个对象有Start、Stop参数.

# Type aliases

ElectionFunc 选举成功之后会回调这个函数,只会回调一次.
No description provided by the author
No description provided by the author
No description provided by the author
WatcherFunc 来自于Watcher的回调,通过这个回调来进行通知.