Module eturnal

Behaviours: gen_server.

Data Types

config_changes()

config_changes() = {[{option(), value()}], [{option(), value()}], [option()]}

listeners()

listeners() = [{inet:port_number(), transport()}]

modules()

modules() = [module()]

option()

option() = atom()

state()

state() = #eturnal_state{listeners = listeners(), modules = modules()}

transport()

transport() = udp | tcp | tls

value()

value() = term()

Function Index

abort/1
code_change/3
get_opt/1
get_password/2
handle_call/3
handle_cast/2
handle_info/2
init/1
run_hook/2
start/0
start_link/0
stop/0
terminate/2

Function Details

abort/1

abort(Reason::term()) -> no_return()

code_change/3

code_change(OldVsn::{down, term()} | term(), State::state(), Extra::term()) -> {ok, state()}

get_opt/1

get_opt(Opt::option()) -> value()

get_password/2

get_password(Username::binary(), Realm::binary()) -> binary()

handle_call/3

handle_call(Request::reload | get_info | get_version | get_loglevel | {set_loglevel, eturnal_logger:level()} | term(), From::{pid(), term()}, State::state()) -> {reply, ok | {ok, term()} | {error, term()}, state()}

handle_cast/2

handle_cast(Msg::{config_change, config_changes(), fun(() -> ok), fun(() -> ok)} | term(), State::state()) -> {noreply, state()} | no_return()

handle_info/2

handle_info(Info::term(), State::state()) -> {noreply, state()}

init/1

init(Opts::any()) -> {ok, state()} | no_return()

run_hook/2

run_hook(Event::eturnal_module:event(), Info::eturnal_module:info()) -> ok

start/0

start() -> ok | {error, term()}

start_link/0

start_link() -> {ok, pid()} | ignore | {error, term()}

stop/0

stop() -> ok | {error, term()}

terminate/2

terminate(Reason::normal | shutdown | {shutdown, term()} | term(), State::state()) -> ok


Generated by EDoc