Packages

The Bloodbath Erlang library provides convenient access to the Bloodbath API from applications written in the Erlang language.

Current section

Files

Jump to
bloodbath src bloodbath.erl
Raw

src/bloodbath.erl

-module(bloodbath).
-export([start/0, init/1, get_config/0]).
-spec start() -> {ok, pid()}.
start() ->
{ok, _Pid} = application:start(bloodbath).
-spec init([]) -> {ok, bloodbath_configuration:state_record()}.
init([]) ->
{ok, bloodbath_configuration:new()}.
-spec get_config() -> bloodbath_configuration:state_record().
get_config() ->
bloodbath_configuration:get_config().