Documentation ¶
Index ¶
- Variables
- func Connect(addr []string, timeout time.Duration) (*zk.Conn, error)
- func Create(conn *zk.Conn, fpath string) error
- func GetNodeData(conn *zk.Conn, path string) ([]byte, error)
- func GetNodesW(conn *zk.Conn, path string) ([]string, <-chan zk.Event, error)
- func RegisterTempNode(conn *zk.Conn, fpath string, data []byte) error
- func SetNodeData(conn *zk.Conn, path string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoChild = errors.New("zk: children is nil") ErrNodeNotExist = errors.New("zk: node not exist") )
Functions ¶
func RegisterTempNode ¶
注册一个临时znode
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.