Documentation ¶
Index ¶
- func CreateIfNotExists(conn *zk.Conn, path string) error
- func CreateIfNotExistsOrDie(conn *zk.Conn, path string)
- 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)
- func ValidateZNodeName(n string) bool
- type Notifier
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 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.
func SafeSetOrDie ¶
SafeSetOrDie sets ZNode or dies.
func ValidateZNodeName ¶
ValidateZNodeName validates ZNode's name.
- must be between 3 and 63 characters in length.
- can include dot (.), hyphen (-) and lowercase letters and numbers ([a-z0-9]).
- can start with an alphanumeric character or a hyphen (-).
- can not start with a dot (.).
- can not contain a double dot (..).
- can not end with a dot (.).
- must not be formatted as IPv4 address.
Types ¶
Click to show internal directories.
Click to hide internal directories.