erf_http_server behaviour (erf v0.1.2)

View Source
erf's interface to interact with its underlying HTTP server.

Summary

Types

conf/0

-type conf() ::
          #{port => inet:port_number(), ssl => boolean(), certfile => binary(), keyfile => binary()}.

extra_conf/0

-type extra_conf() :: term().

t/0

-type t() :: module().

Callbacks

start_link/3

-callback start_link(Name, Conf, ExtraConf) -> Result
                        when
                            Name :: atom(),
                            Conf :: conf(),
                            ExtraConf :: extra_conf(),
                            Result :: supervisor:startlink_ret().

Functions

start_link(Module, ModuleExtraConf, Name, Conf)

-spec start_link(Module, ModuleExtraConf, Name, Conf) -> Result
                    when
                        Module :: module(),
                        ModuleExtraConf :: extra_conf(),
                        Name :: atom(),
                        Conf :: conf(),
                        Result :: supervisor:startlink_ret().