application.ex
defmodule Ibex.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
require Logger
@impl true
def start(_type, _args) do
Logger.info("Starting Ibex.Application...")
children = [
IBClient,
Ibex.Inbound.Handler,
Ibex.Contracts.Storage,
]
opts = [strategy: :one_for_one, name: Ibex.Supervisor]
Supervisor.start_link(children, opts)
end
end