Current section

Files

Jump to
mishka_installer lib application.ex
Raw

lib/application.ex

defmodule MishkaInstaller.Application do
use Application
@impl true
def start(_type, _args) do
children = [
{Finch, name: HexClientApi},
{Registry, keys: :unique, name: PluginStateRegistry},
{DynamicSupervisor, [strategy: :one_for_one, name: PluginStateOtpRunner]},
{DynamicSupervisor, [strategy: :one_for_one, name: MishkaInstaller.RunTimeObanSupervisor]},
{Task.Supervisor, name: MishkaInstaller.Activity},
{Task.Supervisor, name: DepChangesProtectorTask},
{Task.Supervisor, name: MishkaInstaller.Installer.DepHandler},
{Task.Supervisor, name: PluginEtsTask},
{Phoenix.PubSub, name: MishkaInstaller.PubSub},
MishkaInstaller.PluginETS,
MishkaInstaller.Installer.DepChangesProtector,
MishkaInstaller.Helper.Setting
]
opts = [strategy: :one_for_one, name: MishkaInstaller.Supervisor]
Supervisor.start_link(children, opts)
end
end