Documentation
¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Close() error
- func (c *Client) Create(path string, data []byte) error
- func (c *Client) CreateInOrder(path string, data []byte) (string, error)
- func (c *Client) Delete(path string) error
- func (c *Client) List(path string, must bool) ([]string, error)
- func (c *Client) Mkdir(path string) error
- func (c *Client) Read(path string, must bool) ([]byte, error)
- func (c *Client) Update(path string, data []byte) error
- func (c *Client) WatchInOrder(path string) (<-chan clientlocal.Event, []string, error)
Constants ¶
View Source
const MAX_TTL = 365 * 24 * 60 * 60 * time.Second
Variables ¶
View Source
var ( ErrNotDir = errors.New("etcd: not a dir") ErrNotFile = errors.New("etcd: not a file") ErrNotExist = errors.New("etcd: not exist") )
View Source
var ErrClosedClient = errors.New("use of closed etcd client")
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateInOrder ¶
assume this is only used by cli, and cli operation is locked. So just not support concurrency create.
func (*Client) WatchInOrder ¶
Click to show internal directories.
Click to hide internal directories.