Module eetcd

Data Types

'Grpc.Status'()

'Grpc.Status'() = '?GRPC_STATUS_OK' | '?GRPC_STATUS_CANCELLED' | '?GRPC_STATUS_UNKNOWN' | '?GRPC_STATUS_INVALID_ARGUMENT' | '?GRPC_STATUS_DEADLINE_EXCEEDED' | '?GRPC_STATUS_NOT_FOUND' | '?GRPC_STATUS_ALREADY_EXISTS' | '?GRPC_STATUS_PERMISSION_DENIED' | '?GRPC_STATUS_RESOURCE_EXHAUSTED' | '?GRPC_STATUS_RESOURCE_EXHAUSTED' | '?GRPC_STATUS_FAILED_PRECONDITION' | '?GRPC_STATUS_ABORTED' | '?GRPC_STATUS_OUT_OF_RANGE' | '?GRPC_STATUS_UNIMPLEMENTED' | '?GRPC_STATUS_INTERNAL' | '?GRPC_STATUS_UNAVAILABLE' | '?GRPC_STATUS_DATA_LOSS' | '?GRPC_STATUS_UNAUTHENTICATED'

Function Index

get_watch_id/1get watch id for other watchers If watch_id is provided and non-zero, it will be assigned to this watcher.
lease_keep_alive/1Keeps the lease alive by streaming keep alive requests from the client to the server and streaming keep alive responses from the server to the client.
member_list/0members is a list of all members associated with the cluster.
unwatch/1Cancel watches.
watch/2Watch watches for events happening or that have happened.
watch/3

Function Details

get_watch_id/1

get_watch_id(Pid::pid()) -> non_neg_integer()

get watch id for other watchers If watch_id is provided and non-zero, it will be assigned to this watcher. Since creating a watcher in etcd is not a synchronous operation, this can be used ensure that ordering is correct when creating multiple watchers on the same stream. Creating a watcher with an ID already in use on the stream will cause an error to be returned.

lease_keep_alive/1

lease_keep_alive(Id::#'Etcd.LeaseKeepAliveRequest'{} | integer()) -> ok

Keeps the lease alive by streaming keep alive requests from the client to the server and streaming keep alive responses from the server to the client.

member_list/0

member_list() -> {ok, #'Etcd.MemberListResponse'{}} | {error, term()}

members is a list of all members associated with the cluster.

unwatch/1

unwatch(Pid::pid()) -> ok

Cancel watches. No further events will be sent to the canceled watcher.

watch/2

watch(CreateReq::#'Etcd.WatchCreateRequest'{}, Callback) -> {ok, pid()}

Watch watches for events happening or that have happened. Both input and output are streams; the input stream is for creating watchers and the output stream sends events. One watch RPC can watch on multiple key ranges, streaming events for several watches at once. The entire event history can be watched starting from the last compaction revision. {ignore_create, true} make callback function ignore create watch event. {ignore_cancel, true} make callback function ignore cancel watch event.

watch/3

watch(CreateReq::#'Etcd.WatchCreateRequest'{}, Callback, Options) -> {ok, pid()}


Generated by EDoc