Documentation ¶
Index ¶
- Constants
- func Init(endpoints []string)
- type Client
- func (ec *Client) CreateDir(dir string) error
- func (ec *Client) CreateWatcher(dir string) (client.Watcher, error)
- func (ec *Client) Delete(key string) (err error)
- func (ec *Client) Get(key string) (value string, err error)
- func (ec *Client) IsDirExist(dir string) bool
- func (ec *Client) List(dir string) ([]string, error)
- func (ec *Client) Set(key, value string) error
Constants ¶
View Source
const ( // Actions about watcher. Watch_Action_Create string = "create" Watch_Action_Set string = "set" Watch_Action_Delete string = "delete" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the type for etcd client.
func (*Client) CreateWatcher ¶
CreateWatcher creates a watcher to watch a dir.
func (*Client) IsDirExist ¶
IsDirExist gets if the path is a dir in etcd server.
Click to show internal directories.
Click to hide internal directories.