Documentation ¶
Index ¶
Constants ¶
View Source
const ClientDefaultTimeout = 1
ClientDefaultTimeout ..
Variables ¶
View Source
var ClientProxy clientProxy
ClientProxy ..
Functions ¶
Types ¶
type EtcdClient ¶
func NewEtcdClient ¶
func NewEtcdClient(cfg clientv3.Config, options ...EtcdClientOption) (obj *EtcdClient, err error)
NewEtcdClient ..
func (*EtcdClient) Conn ¶ added in v0.4.0
func (e *EtcdClient) Conn() *clientv3.Client
type EtcdClientOption ¶ added in v0.4.0
type EtcdClientOption func(e *EtcdClient)
func WithUniqueZone ¶ added in v0.4.0
func WithUniqueZone(zone *view.UniqZone) EtcdClientOption
Click to show internal directories.
Click to hide internal directories.