Lamina.Registry.ServerRegistry (lamina v0.4.2)

An Elixir Registry which keeps track of Lamina.Server processes.

Summary

Functions

Returns a list of all the currently running configuration servers on this system.

Functions

@spec all_servers() :: [module()]

Returns a list of all the currently running configuration servers on this system.

@spec lookup(module()) ::
  {:ok, pid(), Lamina.Server.Table.t()}
  | {:error, Lamina.Error.NotRegisteredError.t()}
Link to this function

register(module, table)

@spec register(module(), :ets.tid()) ::
  {:ok, pid()} | {:error, Lamina.Error.AlreadyRegisteredError.t()}