Packages
Shared functionality for working with PIDs across a distributed cluster. Acts as a wrapper around [Horde](https://hex.pm/packages/horde), providing a few convenience functions such as helpers for working with two-element registry keys.
Current section
Files
Jump to
Current section
Files
lib/hydrax/application.ex
defmodule Hydrax.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
sup_opts = Application.get_env(:hydrax, :supervisor, [])
task_opts = Application.get_env(:hydrax, :task_supervisor, [])
reg_opts = Application.get_env(:hydrax, :registry, [])
children = [
{Hydrax.Registry, reg_opts},
{Hydrax.Supervisor, sup_opts},
{Hydrax.TaskSupervisor, task_opts},
]
opts = [strategy: :one_for_one, name: Hydrax.Application]
Supervisor.start_link(children, opts)
end
end