Documentation ¶
Index ¶
- func GetServers() ([]string, error)
- func RegisterAfterConnected(handler func())
- type Client
- func (z *Client) ChildrenW(path string) ([]string, *zk.Stat, <-chan zk.Event, error)
- func (z *Client) Close()
- func (z *Client) Create(path string, data []byte, flag int32, acl []zk.ACL) (string, error)
- func (z *Client) Delete(path string, version int32) error
- func (z *Client) Exists(path string) (bool, *zk.Stat, error)
- func (z *Client) Get(path string) ([]byte, *zk.Stat, error)
- func (z *Client) GetC(k string) (string, error)
- func (z *Client) GetChildC(key string) (map[string]string, error)
- func (z *Client) GetChildKeyC(key string) ([]string, error)
- func (z *Client) GetW(path string) ([]byte, *zk.Stat, <-chan zk.Event, error)
- func (z *Client) State() zk.State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServers ¶
func RegisterAfterConnected ¶
func RegisterAfterConnected(handler func())
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func MustNewZookeeperClient ¶
func NewZookeeperClient ¶
Click to show internal directories.
Click to hide internal directories.