etcdgun (etcdgun v0.1.0)

View Source

Summary

Types

client/0

-type client() :: atom().

endpoint/0

-type endpoint() :: {Host :: string(), Port :: inet:port_number()}.

opts/0

-type opts() ::
          #{cred => {Username :: string(), Password :: string()},
            transport => tcp | tls,
            stream_interceptors => [egrpc_stub:stream_interceptor()],
            unary_interceptors => [egrpc_stub:unary_interceptor()]}.

Functions

cancel_watch(Client, WatcherName)

clients()

close(Client)

open(Client, Endpoints)

-spec open(client(), [endpoint()]) -> {ok, pid()} | {error, Reason :: term()}.

open(Client, Endpoints, Opts)

-spec open(client(), [endpoint()], opts()) -> {ok, pid()} | {error, Reason :: term()}.

prefix_range_end(Key)

-spec prefix_range_end(Key :: binary() | string()) -> string().

watch(Client, WatcherName, EventHandler, EventHandlerArgs, Requests)