Documentation ¶
Index ¶
- Variables
- type EtcdClient
- func (c *EtcdClient) BasePrefix() string
- func (c *EtcdClient) Close() error
- func (c *EtcdClient) Create(path string, data []byte) error
- func (c *EtcdClient) Delete(path string) error
- func (c *EtcdClient) List(path string) ([]string, error)
- func (c *EtcdClient) Mkdir(dir string) error
- func (c *EtcdClient) Read(path string) ([]byte, error)
- func (c *EtcdClient) Update(path string, data []byte) error
- func (c *EtcdClient) UpdateWithTTL(path string, data []byte, ttl time.Duration) error
- func (c *EtcdClient) Watch(path string, ch chan string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosedEtcdClient = errors.New("use of closed etcd client")
ErrClosedEtcdClient means etcd client closed
Functions ¶
This section is empty.
Types ¶
type EtcdClient ¶
EtcdClient etcd client
func (*EtcdClient) BasePrefix ¶
func (c *EtcdClient) BasePrefix() string
BasePrefix return base prefix
func (*EtcdClient) Create ¶
func (c *EtcdClient) Create(path string, data []byte) error
Create create path with data
func (*EtcdClient) List ¶
func (c *EtcdClient) List(path string) ([]string, error)
List list path, return slice of all paths
func (*EtcdClient) Read ¶
func (c *EtcdClient) Read(path string) ([]byte, error)
Read read path data
func (*EtcdClient) Update ¶
func (c *EtcdClient) Update(path string, data []byte) error
Update update path with data
func (*EtcdClient) UpdateWithTTL ¶
UpdateWithTTL update path with data and ttl
Click to show internal directories.
Click to hide internal directories.