defmodule RoomZeus.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@registry :zeus
@impl true
def start(_type, _args) do
children = [
# Starts a worker by calling: RoomGtfs.Worker.start_link(arg)
# {RoomGtfs.Worker, arg}
# RoomSanctum.Repo,
RoomZeus.Cache,
{RoomZeus.DynSupervisor, strategy: :one_for_one},
{RoomZeus.VisionSupervisor, strategy: :one_for_one},
{RoomZeus.PythiaeSupervisor, strategy: :one_for_one},
{RoomZeus.AnkyraSupervisor, strategy: :one_for_one},
{RoomZeus.ScribusSupervisor, strategy: :one_for_one},
{RoomZeus.KeryxSupervisor, strategy: :one_for_one},
# Supervisor.child_spec({RoomZeus.DynSupervisor, strategy: :one_for_one, subtype: :gbfs, name: :gbfs}, id: :zgbfs),
{Registry, [keys: :unique, name: @registry]},
{RoomScribe.Worker, []},
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: RoomZeus.Supervisor]
Supervisor.start_link(children, opts)
end
end
neiam
/apollos_crib
It's Apollo's Crib
public · Issues · Pulls 1 · Labels · Forks · Compare · Actions failure · Badges · Packages
⭐
Log in to mark this repository.
1.2 KiB · text
History
0120a63