Documentation ¶
Overview ¶
Package gxzookeeper provides a zookeeper driver based on samuel/go-zookeeper/zk
Index ¶
- type Client
- func (c *Client) CreateZkPath(basePath string) error
- func (c *Client) DeleteZkPath(path string) error
- func (c *Client) ExistW(path string) (<-chan zk.Event, error)
- func (c *Client) Get(path string) ([]byte, error)
- func (c *Client) GetChildren(path string) ([]string, error)
- func (c *Client) GetChildrenW(path string) ([]string, <-chan zk.Event, error)
- func (c *Client) RegisterTemp(path string, data []byte) (string, error)
- func (c *Client) RegisterTempSeq(path string, data []byte) (string, error)
- func (c *Client) StateToString(state zk.State) string
- func (c *Client) ZkConn() *zk.Conn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteZkPath ¶
像创建一样,删除节点的时候也只能从叶子节点逐级回退删除 当节点还有子节点的时候,删除是不会成功的
func (*Client) GetChildrenW ¶
func (*Client) RegisterTemp ¶
func (*Client) RegisterTempSeq ¶
Click to show internal directories.
Click to hide internal directories.