misha_cafex v0.0.5 Cafex.ZK.Util

ZooKeeper Utilities

Summary

Types

watcher :: pid
zk :: pid

Functions

create_node(zk, path)

Specs

create_node(zk, path) :: :ok | {:error, term}
create_nodes(zk, list)

Specs

create_nodes(zk, [path]) :: :ok | {:error, term}
get_children(zk, path, watcher \\ nil)

Specs

get_children(zk, path, watcher | nil) ::
  {:ok, [child_node :: String.t]} |
  {:error, term}
get_children_with_data(zk, path, watcher \\ nil)

Specs

get_children_with_data(zk, path, watcher | nil) ::
  {:ok, [{child_node :: String.t, data :: binary}]} |
  {:error, term}
get_data(zk, path, watcher \\ nil)

Specs

get_data(zk, path, watcher | nil) ::
  {:ok, term} |
  {:error, term}