EtcdClient v0.2.0-alpha.2 EtcdClient.Watcher View Source

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %EtcdClient.Watcher{
  callback_pid: pid(),
  channel: GRPC.Channel.t(),
  stream: GRPC.Server.Stream.t(),
  watcher_id: term()
}

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_stream(watcher_id)

View Source
get_stream(term()) :: {:ok, GRPC.Server.Stream.t()}
Link to this function

kill_watcher(watcher_id)

View Source
kill_watcher(term()) :: :ok
Link to this function

send_watch_event(watcher_id, event)

View Source
send_watch_event(term(), Etcdserverpb.WatchResponse.t()) :: :ok
Link to this function

send_watch_request(watch_request, watcher_id)

View Source
send_watch_request(Etcdserverpb.WatchRequest.t(), term()) :: :ok
Link to this function

set_stream(watcher_id, stream)

View Source
set_stream(term(), GRPC.Server.Stream.t()) :: :ok
Link to this function

start_listener(watcher_id)

View Source
start_listener(term()) :: {:ok, GRPC.Server.Stream.t()}