Lamina.Registry.ServerRegistry (lamina v0.4.4)

Copy Markdown

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

all_servers()

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

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

lookup(module)

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

register(module, table)

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