Documentation ¶
Index ¶
- type EtcdClient
- func (e *EtcdClient) Acquire(key, node string) (string, error)
- func (e *EtcdClient) Close() error
- func (e *EtcdClient) Del(key string) error
- func (e *EtcdClient) Get(key string) (string, error)
- func (e *EtcdClient) Leader(key string) (string, error)
- func (e *EtcdClient) Set(key string, val string) error
- func (e *EtcdClient) SetIfNotExists(key string, val string) error
- func (e *EtcdClient) TryAcquire(key, node string) (string, error)
- func (e *EtcdClient) WatchFolder(folder string) (<-chan compdb.WatchEvent, shared.CancelFn, error)
- type EtcdClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdClient ¶
type EtcdClient struct {
// contains filtered or unexported fields
}
func NewEtcdClient ¶
func NewEtcdClient(config *EtcdClientConfig) (*EtcdClient, error)
func (*EtcdClient) Close ¶
func (e *EtcdClient) Close() error
func (*EtcdClient) Del ¶
func (e *EtcdClient) Del(key string) error
func (*EtcdClient) SetIfNotExists ¶ added in v0.0.4
func (e *EtcdClient) SetIfNotExists(key string, val string) error
func (*EtcdClient) TryAcquire ¶ added in v0.0.8
func (e *EtcdClient) TryAcquire(key, node string) (string, error)
func (*EtcdClient) WatchFolder ¶
func (e *EtcdClient) WatchFolder(folder string) (<-chan compdb.WatchEvent, shared.CancelFn, error)
type EtcdClientConfig ¶
type EtcdClientConfig struct {
Endpoints []string
}
Click to show internal directories.
Click to hide internal directories.