Decree.Registration (decree v0.1.0)

Copy Markdown View Source

Use the process registry configured for a Decree application.

Summary

Functions

Allow a registry adapter to handle the standard GenServer callback functions.

Use the Decree.Registration module to import the registry adapter and via tuple functions.

Get the configured process registry.

Types

application()

@type application() :: Decree.Application.t()

config()

@type config() :: Keyword.t()

Functions

__before_compile__(env)

(macro)

Allow a registry adapter to handle the standard GenServer callback functions.

__using__(opts)

(macro)

Use the Decree.Registration module to import the registry adapter and via tuple functions.

adapter(application, config)

@spec adapter(application(), config()) :: {module(), config()}

Get the configured process registry.

Defaults to a local registry, restricted to running on a single node.