Documentation ¶
Index ¶
- Variables
- type ConfigMessage
- type MongoConfig
- type NodeConfig
- type ZkConfig
- type ZkConn
- func (c *ZkConn) CreateNewNode(path string, data []byte) (string, error)
- func (c *ZkConn) DeleteNode(path string) error
- func (c *ZkConn) GetChildrenWatcher(path string) ([]string, *zk.Stat, <-chan zk.Event, error)
- func (c *ZkConn) GetNode(path string) ([]byte, error)
- func (c *ZkConn) GetNodeWatcher(path string) ([]byte, *zk.Stat, <-chan zk.Event, error)
- func (c *ZkConn) ListChildren(path string) ([]string, error)
- func (c *ZkConn) NodeExists(path string) (bool, *zk.Stat, error)
- func (c *ZkConn) SetNode(path string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ConfigMessage ¶
type MongoConfig ¶
type NodeConfig ¶
type ZkConn ¶
type ZkConn struct { Addr string // contains filtered or unexported fields }
func GetZkInstance ¶
Get the instance information of the zk cluster connection
func (*ZkConn) CreateNewNode ¶
create new link node
func (*ZkConn) DeleteNode ¶
func (*ZkConn) GetChildrenWatcher ¶
get the change watcher of all child nodes of the current node
func (*ZkConn) GetNodeWatcher ¶
get the watcher of current node (the full path info)
func (*ZkConn) ListChildren ¶
list child path info
func (*ZkConn) NodeExists ¶
if node exist
Click to show internal directories.
Click to hide internal directories.