Documentation ¶
Overview ¶
zkhelpers contains functions that make it easier to work with the primitives provided by github.com/samuel/go-zookeeper. This is inspired by the ZkUtil class that is included in the official Java client library. The eventual goal is to contribute these functions to github.com/samuel/go-zookeeper
Index ¶
Constants ¶
const (
DefaultRoot = "/"
)
Variables ¶
This section is empty.
Functions ¶
func DeleteRecursively ¶
DeleteRecursively will recursively delete the node with the given path. All versions of all nodes under the given node are deleted.
If there is an error with deleting one of the sub-nodes in the tree, this operation would abort and would be the responsibility of the caller to handle the same.
func IsInternalNode ¶
func ListSubtree ¶
ListSubtree - BFS Traversal of the system under pathRoot, with the entries in the list, in the same order as that of the traversal.
Important: This is not an atomic snapshot of the tree ever, but the state as it exists across multiple RPCs from zkClient to the ensemble.
Types ¶
This section is empty.