Current section
Files
Jump to
Current section
Files
lib/ex_zarr/application.ex
defmodule ExZarr.Application do
@moduledoc """
ExZarr application module.
Starts the supervision tree including the codec and storage registries.
"""
use Application
require Logger
@impl true
def start(_type, _args) do
Logger.debug("Starting ExZarr application")
children = [
# Codec registry for managing built-in and custom codecs
{ExZarr.Codecs.Registry, []},
# Storage backend registry for managing built-in and custom storage backends
{ExZarr.Storage.Registry, []}
]
opts = [strategy: :one_for_one, name: ExZarr.Supervisor]
Supervisor.start_link(children, opts)
end
end