Behaviours: gen_server.
state() = #state{credential = undefined | watts:credential()}
code_change/3 | implementation of 'code_change' for the behaviour, does nothing. |
get_credential/1 | sending a call to retrieve the credential. |
handle_call/3 | implementation of 'handle_call'. |
handle_cast/2 | implementation of 'handle_cast'. |
handle_info/2 | implementation of 'handle_info'. |
init/1 | initialize the process with a credential. |
start/1 | starting the non-linked gen_server with the credential. |
start_link/1 | starting the linked gen_server with the credential. |
stop/1 | stopping the gen_server. |
terminate/2 | implementation of 'terminate' for the behaviour, does nothing. |
implementation of 'code_change' for the behaviour, does nothing.
get_credential(Pid::pid()) -> {ok, watts:credential()}
sending a call to retrieve the credential
handle_call(X1::get_credential, From::any(), State::state()) -> {stop, normal, {ok, watts:credential()}, state()}
implementation of 'handle_call'. This just returns the credential if asked and then stops.
implementation of 'handle_cast'. This only reacts to stop and then stops the process.
implementation of 'handle_info'. This only reacts to timeout and then stops the process.
init(Credential::watts:credential()) -> {ok, state(), Timeout::non_neg_integer()}
initialize the process with a credential
start(Credential::watts:credential()) -> {ok, pid()}
starting the non-linked gen_server with the credential.
start_link(Credential::watts:credential()) -> {ok, pid()}
starting the linked gen_server with the credential
stop(Pid::pid()) -> ok
stopping the gen_server
terminate(Reason::any(), State::any()) -> ok
implementation of 'terminate' for the behaviour, does nothing.
Generated by EDoc