View Source erldns_admin (erldns v4.2.0)

Erldns admin API.

Configuration:

This application will read from your sys.config the following example:

{erldns, [
    {admin, [
        {credentials, {<<"username">>, <<"password">>}},
        {port, 8083}
    ]}
]}

where credentials is a tuple of username and password as either strings or binaries, and port is a valid Unix port to listen on.

Summary

Types

Configuration parameters, see the module documentation for details.

Common state for all handlers

Types

config()

-type config() :: #{port := 0..65535, username := binary(), password := binary()}.

Configuration parameters, see the module documentation for details.

handler_state()

-opaque handler_state()

Common state for all handlers

Functions

maybe_start()

-spec maybe_start() -> ok | {ok, pid()} | {error, any()}.