Versions in this module Expand all Collapse all v1 v1.0.0 May 24, 2019 Changes in this version + var ErrClosedEtcdClient = errors.New("use of closed etcd client") + type EtcdClient struct + Prefix string + func New(addr string, timeout time.Duration, username, passwd string) (*EtcdClient, error) + 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