Packages

A tiny library for lookup node(s) in dynamic clustering. Map node to roles or id and allows you to easily select node(s) by role/id.

Current section

Files

Jump to
cluster_helper lib cluster_helper application.ex
Raw

lib/cluster_helper/application.ex

defmodule ClusterHelper.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
ClusterHelper.NodeConfig,
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: ClusterHelper.Supervisor]
Supervisor.start_link(children, opts)
end
end