ExZarr.ChunkKey.Registry (ExZarr v1.1.0)

View Source

Encoder registry for managing custom chunk key encoders.

This Agent-based registry stores encoder modules that can be looked up by name.

Summary

Functions

Returns a specification to start this module under a supervisor.

Retrieves an encoder module by name.

Registers a custom encoder module.

Starts the encoder registry with default encoders.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get(name)

@spec get(atom()) :: {:ok, module()} | {:error, :not_found}

Retrieves an encoder module by name.

register(name, encoder_module)

@spec register(atom(), module()) :: :ok

Registers a custom encoder module.

start_link(opts)

Starts the encoder registry with default encoders.