Documentation ¶
Index ¶
- func CreateIfNotExist(conn *zk.Conn, path string) error
- func CreateIfNotExistOrDie(conn *zk.Conn, path string)
- func SafeCreate(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 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 ValidateZNode(znode string) bool
- type Notifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIfNotExist ¶
CreateIfNotExist creates znode if not exist.
func CreateIfNotExistOrDie ¶
CreateIfNotExistOrDie creates znode if not exist or die.
func SafeCreate ¶
SafeCreate creates znode safely.
func SafeCreateOrSet ¶
SafeCreateOrSet creates znode or sets znode.
func SafeDelete ¶
SafeDelete deletes znode safely.
func SafeGetChildren ¶
SafeGetChildren lists all children attched to the parent znode.
Types ¶
Click to show internal directories.
Click to hide internal directories.