EtcdClient v0.2.0-alpha.1 EtcdClient.Watcher View Source
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %EtcdClient.Watcher{
callback_pid: pid(),
channel: GRPC.Channel.t(),
stream: GRPC.Server.Stream.t(),
watcher_id: term()
}
t() :: %EtcdClient.Watcher{ callback_pid: pid(), channel: GRPC.Channel.t(), stream: GRPC.Server.Stream.t(), watcher_id: term() }
Link to this section Functions
Link to this function
child_spec(init_arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
get_stream(watcher_id)
View Source
get_stream(watcher_id)
View Source
get_stream(term()) :: {:ok, GRPC.Server.Stream.t()}
get_stream(term()) :: {:ok, GRPC.Server.Stream.t()}
Link to this function
kill_watcher(watcher_id)
View Source
kill_watcher(watcher_id)
View Source
kill_watcher(term()) :: :ok
kill_watcher(term()) :: :ok
Link to this function
send_watch_event(watcher_id, event)
View Source
send_watch_event(watcher_id, event)
View Source
send_watch_event(term(), Etcdserverpb.WatchResponse.t()) :: :ok
send_watch_event(term(), Etcdserverpb.WatchResponse.t()) :: :ok
Link to this function
send_watch_request(watch_request, watcher_id)
View Source
send_watch_request(watch_request, watcher_id)
View Source
send_watch_request(Etcdserverpb.WatchRequest.t(), term()) :: :ok
send_watch_request(Etcdserverpb.WatchRequest.t(), term()) :: :ok
Link to this function
set_stream(watcher_id, stream)
View Source
set_stream(watcher_id, stream)
View Source
set_stream(term(), GRPC.Server.Stream.t()) :: :ok
set_stream(term(), GRPC.Server.Stream.t()) :: :ok
Link to this function
start_link(args) View Source
Link to this function
start_listener(watcher_id)
View Source
start_listener(watcher_id)
View Source
start_listener(term()) :: {:ok, GRPC.Server.Stream.t()}
start_listener(term()) :: {:ok, GRPC.Server.Stream.t()}