|
%%%-------------------------------------------------------------------
|
|
%% @doc {{name}} top level supervisor.
|
|
%% @end
|
|
%%%-------------------------------------------------------------------
|
|
|
|
-module({{name}}_sup).
|
|
|
|
-behaviour(supervisor).
|
|
|
|
%% API
|
|
-export([start_link/0]).
|
|
|
|
%% Supervisor callbacks
|
|
-export([init/1]).
|
|
|
|
-define(SERVER, ?MODULE).
|
|
|
|
%%====================================================================
|
|
%% API functions
|
|
%%====================================================================
|
|
|
|
start_link() ->
|
|
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
|
|
|
|
%%====================================================================
|
|
%% Supervisor callbacks
|
|
%%====================================================================
|
|
|
|
%% Child :: #{id => Id, start => {M, F, A}}
|
|
%% Optional keys are restart, shutdown, type, modules.
|
|
init([]) ->
|
|
{ok, { {one_for_all, 0, 1}, []} }.
|
|
|
|
%%====================================================================
|
|
%% Internal functions
|
|
%%====================================================================
|