Documentation ¶
Index ¶
- func CloseConn(conn *zk.Conn)
- func CreateIfNotExists(conn *zk.Conn, path string) error
- func CreateIfNotExistsOrDie(conn *zk.Conn, path string)
- func EstablishConn(zkEndpoints []string) *zk.Conn
- func SafeCreate(conn *zk.Conn, path string, data []byte, flags int32) (string, error)
- func SafeCreateOrDie(conn *zk.Conn, path string, data []byte, flags int32) (string, error)
- func SafeCreateOrSet(conn *zk.Conn, path string, data []byte, flags int32) (string, error)
- func SafeDelete(conn *zk.Conn, path string, version int32) error
- func SafeDeleteOrDie(conn *zk.Conn, path string, version int32) error
- func SafeGet(conn *zk.Conn, path string) ([]byte, *zk.Stat, error)
- func SafeGetChildren(conn *zk.Conn, path string, watch bool) ([]string, <-chan zk.Event, error)
- func SafeSet(conn *zk.Conn, path string, data []byte, version int32) (*zk.Stat, error)
- func SafeSetOrDie(conn *zk.Conn, path string, data []byte, version int32) (*zk.Stat, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIfNotExists ¶
CreateIfNotExists creates ZNode if it does not Exist.
func CreateIfNotExistsOrDie ¶
CreateIfNotExistsOrDie creates ZNode if it does not Exist or dies.
func EstablishConn ¶
EstablishConn establishes a global zookeeper connection
func SafeCreate ¶
SafeCreate creates ZNode.
func SafeCreateOrDie ¶
SafeCreateOrDie creates ZNode or dies.
func SafeCreateOrSet ¶
SafeCreateOrSet creates ZNode or sets ZNode.
func SafeDelete ¶
SafeDelete deletes ZNode.
func SafeDeleteOrDie ¶
SafeDeleteOrDie deletes ZNode or does dies.
func SafeGetChildren ¶
SafeGetChildren lists all children attched to the ZNode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.