ExStorageService.Names (ex_storage_service v0.6.3)

Copy Markdown View Source

Stable local process names for storage instances.

Arbitrary instance identifiers remain Registry keys; they are never converted into atoms. The default instance retains historical module names for compatibility with existing callers.

Summary

Functions

default_instance?(instance)

@spec default_instance?(term()) :: boolean()

instance_supervisor(instance)

@spec instance_supervisor(atom() | String.t()) :: {:via, Registry, {atom(), term()}}

outbox_task_supervisor(instance)

@spec outbox_task_supervisor(atom() | String.t()) :: atom() | tuple()

process(instance, component, legacy_name)

@spec process(atom() | String.t(), atom(), atom()) :: atom() | tuple()

registry()

@spec registry() :: atom()

via(instance, component)

@spec via(atom() | String.t(), atom()) :: {:via, Registry, {atom(), term()}}