EtcdClient v0.2.0-alpha.2 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 Sourcet() :: %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 Sourceget_stream(term()) :: {:ok, GRPC.Server.Stream.t()}
Link to this function
send_watch_event(watcher_id, event)
View Sourcesend_watch_event(term(), Etcdserverpb.WatchResponse.t()) :: :ok
Link to this function
send_watch_request(watch_request, watcher_id)
View Sourcesend_watch_request(Etcdserverpb.WatchRequest.t(), term()) :: :ok
Link to this function
set_stream(watcher_id, stream)
View Sourceset_stream(term(), GRPC.Server.Stream.t()) :: :ok
Link to this function
start_listener(watcher_id)
View Sourcestart_listener(term()) :: {:ok, GRPC.Server.Stream.t()}