Documentation ¶
Index ¶
- Variables
- type EtcdClient
- func (this *EtcdClient) Close() (err error)
- func (this *EtcdClient) Create(path string, data string) (err error)
- func (this *EtcdClient) CreateEphemeral(path string, data []byte) (err error)
- func (this *EtcdClient) CreateEphemeralInOrder(path string, data []byte) (err error)
- func (this *EtcdClient) Delete(path string) (err error)
- func (this *EtcdClient) GetLocalIp() string
- func (this *EtcdClient) List(path string) (paths []string, index uint64, err error)
- func (this *EtcdClient) Read(path string) (data string, index uint64, err error)
- func (this *EtcdClient) Update(path string, data []byte) (err error)
- func (this *EtcdClient) Watch(path string, cb func() (uint64, error)) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrClosedClient = errors.New("use of closed etcd client") ErrNotDir = errors.New("etcd: not a dir") )
Functions ¶
This section is empty.
Types ¶
type EtcdClient ¶
type EtcdClient struct {
// contains filtered or unexported fields
}
func (*EtcdClient) CreateEphemeral ¶
func (this *EtcdClient) CreateEphemeral(path string, data []byte) (err error)
func (*EtcdClient) CreateEphemeralInOrder ¶
func (this *EtcdClient) CreateEphemeralInOrder(path string, data []byte) (err error)
func (*EtcdClient) Delete ¶
func (this *EtcdClient) Delete(path string) (err error)
func (*EtcdClient) GetLocalIp ¶
func (this *EtcdClient) GetLocalIp() string
func (*EtcdClient) List ¶
func (this *EtcdClient) List(path string) (paths []string, index uint64, err error)
Click to show internal directories.
Click to hide internal directories.