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

Functions

Child specifications for Surreal connection.
Start client from config.

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().
Child specifications for Surreal connection.
-spec load(Config :: config()) -> {ok, pid()}.
Start client from config.