View Source eturnal (eturnal v1.10.1)

Link to this section Summary

Link to this section Types

-type config_changes() :: {[{option(), value()}], [{option(), value()}], [option()]}.
-type listeners() :: [{inet:ip_address(), inet:port_number(), transport()}].
-type modules() :: [module()].
-type option() :: atom().
-type state() :: #eturnal_state{}.
-type transport() :: udp | tcp | tls | auto.
-type value() :: term().

Link to this section Functions

-spec abort(term()) -> no_return().
Link to this function

code_change(OldVsn, State, Extra)

View Source
-spec code_change({down, term()} | term(), state(), term()) -> {ok, state()}.
Link to this function


View Source
-spec create_self_signed(file:filename_all()) -> ok.
-spec get_opt(option()) -> value().
Link to this function

get_password(Username, Realm)

View Source
-spec get_password(binary(), binary()) -> binary() | [binary()] | {expired, binary() | [binary()]}.
Link to this function

handle_call(Request, From, State)

View Source
-spec handle_call(reload | get_info | get_version | get_loglevel |
            {set_loglevel, eturnal_logger:level()} |
            {get_password, binary()} |
            {pid(), term()},
            state()) ->
               {reply, ok | {ok, term()} | {error, term()}, state()}.
-spec handle_cast({config_change, config_changes(), fun(() -> ok), fun(() -> ok)} | term(), state()) ->
               {noreply, state()}.
Link to this function

handle_info(Info, State)

View Source
-spec handle_info(term(), state()) -> {noreply, state()}.
-spec init(any()) -> {ok, state()}.
-spec run_hook(eturnal_module:event(), eturnal_module:info()) -> ok.
-spec start() -> ok | {error, term()}.
-spec start_link() -> {ok, pid()} | ignore | {error, term()}.
-spec stop() -> ok | {error, term()}.
Link to this function

terminate(Reason, State)

View Source
-spec terminate(normal | shutdown | {shutdown, term()} | term(), state()) -> ok.