View Source surreal_config (surreal v1.0.1)
Module for advanced configs.
This module allows you to set configs and use them with calling one function.Link to this section Summary
Link to this section Types
-type config() :: [config_value()].
-type config_value() ::
secure | link |
{name, atom()} |
{host, string()} |
{port, integer()} |
{signin, {string(), string()}} |
{use, {string(), string()}}.
Link to this section Functions
-spec child_spec(Config :: config()) -> supervisor:child_spec().
-spec load(Config :: config()) -> {ok, pid()}.