Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Close() error
- func (c *Client) Create(path string, data []byte) error
- func (c *Client) CreateEphemeral(path string, data []byte) (<-chan struct{}, error)
- func (c *Client) CreateEphemeralInOrder(path string, data []byte) (<-chan struct{}, string, 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
- func (c *Client) WatchInOrder(path string) (<-chan struct{}, []string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogfunc = func(format string, v ...interface{}) { log.Info("zookeeper - " + fmt.Sprintf(format, v...)) }
View Source
var ErrClosedClient = errors.New("use of closed zk client")
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewWithLogfunc ¶
func (*Client) CreateEphemeral ¶
func (*Client) CreateEphemeralInOrder ¶
Click to show internal directories.
Click to hide internal directories.