Raxol.Core.GlobalRegistry.RegistryBehaviour behaviour (Raxol v2.0.1)
View SourceBehaviour for unified registry operations.
Summary
Types
Callbacks
@callback count(registry_type()) :: non_neg_integer()
@callback list(registry_type()) :: [entry_data()]
@callback lookup(registry_type(), entry_id()) :: {:ok, entry_data()} | {:error, :not_found}
@callback register(registry_type(), entry_id(), entry_data()) :: :ok | {:error, term()}
@callback search(registry_type(), String.t()) :: [entry_data()]
@callback unregister(registry_type(), entry_id()) :: :ok | {:error, term()}