Yggdrasil v5.0.2 Yggdrasil.Registry View Source
Yggdrasil Registry
for adapters, transformers and backends aliases.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Gets adapter module.
Gets adapter node by name
.
Gets backend module.
Gets full channel.
Gets publisher module.
Gets subscriber module.
Gets transformer module.
Registers an adapter.
Registers a backend.
Registers a transformer.
Starts a registry with some optional options
.
Stops a registry
with optional reason
and timeout
.
Link to this section Types
Registry alias.
type()
View Sourcetype() :: :transformer | :backend | :subscriber | :publisher | :adapter
Registry type.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Gets adapter module.
Gets adapter node by name
.
Gets backend module.
get_full_channel(channel)
View Sourceget_full_channel(Yggdrasil.Channel.t()) :: {:ok, Yggdrasil.Channel.t()} | {:error, term()}
Gets full channel.
Gets publisher module.
Gets subscriber module.
Gets transformer module.
Registers an adapter.
Creates the following entries in the $yggdrasil_registry :ets
table:
- {:adapter, name()} => module()
- {:adapter, module()} => module()
- {:subscriber, name()} => module()
- {:subscriber, module()} => module()
- {:publisher, name()} => module()
- {:publisher, module()} => module()
And also creates the following :pg2
groups:
- {:"$yggdrasil_registry", name()} => pid()
- {:"$yggdrasil_registry", module()} => pid()
- {:"$yggdrasil_registry", subscriber_module()} => pid()
- {:"$yggdrasil_registry", publisher_module()} => pid()
Registers a backend.
Creates the following entries in the $yggdrasil_registry :ets
table:
- {:backend, name()} => module()
- {:backend, module()} => module()
Registers a transformer.
Creates the following entries in the $yggdrasil_registry :ets
table:
- {:transformer, name()} => module()
- {:transformer, module()} => module()
start_link(options \\ [])
View Sourcestart_link(GenServer.options()) :: Agent.on_start()
Starts a registry with some optional options
.
stop(agent, reason \\ :normal, timeout \\ :infinity)
View Sourcestop(pid() | GenServer.name(), term(), :infinity | pos_integer()) :: :ok
Stops a registry
with optional reason
and timeout
.