View Source erf_http_server behaviour (erf v0.1.2)

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

Summary

Types

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

Callbacks

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

Functions

Link to this function

start_link(Module, ModuleExtraConf, Name, Conf)

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