View Source eturnal (eturnal v1.12.0)

Summary

Types

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

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()}.
-spec config_is_loaded() -> boolean().
Link to this function

create_self_signed(File)

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()} |
            term(),
            {pid(), term()},
            state()) ->
               {reply, ok | {ok, term()} | {error, term()}, state()}.
-spec handle_cast(reload | {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 init_config() -> ok.
Link to this function

reload(ConfigChanges, BeginFun, EndFun)

View Source
-spec reload(config_changes(), fun(() -> ok), fun(() -> ok)) -> ok.
-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.