Current section

Files

Jump to
live_dashboard_history lib application.ex
Raw

lib/application.ex

defmodule LiveDashboardHistory.Application do
use Application
alias LiveDashboardHistory.HistorySupervisor
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Starts a worker by calling: Podder.Worker.start_link(arg)
# {Podder.Worker, arg},
{Registry, keys: :unique, name: LiveDashboardHistory.Registry},
%{
id: HistorySupervisor,
start: {HistorySupervisor, :start_link, []}
}
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: LiveDashboardHistory.Supervisor]
Supervisor.start_link(children, opts)
end
end