Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Close() error
- func (c *Client) Create(path string, data []byte) error
- func (c *Client) Delete(path string) error
- func (c *Client) Do(fn func(conn *zk.Conn) error) 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
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogger = func(format string, v ...interface{}) { log.Infof("zookeeper - " + fmt.Sprintf(format, v...)) }
View Source
var ErrClientClosed = errors.New("use a closed zookeeper client")
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewZkClient ¶
Click to show internal directories.
Click to hide internal directories.