Packages

An Erlang library for processing multiple Kinesis and DynamoDB streams and shards in a single node using the Kinesis Client Library and MultiLangDaemon.

Current section

Files

Jump to
erlmld src erlmld_app.erl
Raw

src/erlmld_app.erl

-module(erlmld_app).
-behaviour(application).
-export([start/2, stop/1, ensure_all_started/0]).
%% application callback. load default configuration from application environment, and
%% start erlmd_sup with that configuration.
start(_StartType, []) ->
Opts =
maps:from_list(
application:get_all_env(erlmld)),
erlmld_sup:start_link(Opts).
stop(_State) ->
ok.
ensure_all_started() ->
{ok, Deps} = application:get_key(erlmld, applications),
{ok,
lists:append([begin
{ok, Started} = application:ensure_all_started(Dep),
Started
end
|| Dep <- Deps])}.