gen_changes CouchDB continuous changes consumer behavior This behaviour allows you to create easily a server that consume Couchdb continuous changes.
This module defines the gen_changes
behaviour.
Required callback functions: init/1
, handle_change/2
, handle_call/3
, handle_cast/2
, handle_info/2
, terminate/2
.
behaviour_info/1 | |
call/2 | |
call/3 | |
cast/2 | |
code_change/3 | |
get_seq/1 | |
handle_call/3 | |
handle_cast/2 | |
handle_info/2 | |
init/1 | |
start_link/4 | create a gen_changes process as part of a supervision tree. |
stop/1 | |
terminate/2 |
behaviour_info(X1) -> any()
call(Name, Request) -> any()
call(Name, Request, Timeout) -> any()
cast(Dest, Request) -> any()
code_change(OldVersion, State, Extra) -> any()
get_seq(Pid) -> any()
handle_call(Request, From, State) -> any()
handle_cast(Msg, State) -> any()
handle_info(Info, State) -> any()
init(X1) -> any()
start_link(Module, Db::db(), Options::changesoptions(), InitArgs::list()) -> term()
changesoptions() = [changeoption()]
changeoption() = {include_docs, string()} | {filter, string()} | {since, integer() | string()} | {heartbeat, string() | boolean()}
create a gen_changes process as part of a supervision tree. The function should be called, directly or indirectly, by the supervisor.
stop(Pid) -> any()
terminate(Reason, Gen_changes_state) -> any()