Yggdrasil v5.0.0 Yggdrasil.Adapter.Bridge.Generator View Source
This module generates supervised remote subscribers.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Starts a bridge subscriber with a channel
and remote pid
.
Starts a bridge subscriber generator with Supervisor
options
.
Stops a bridge subscriber generator
.
Link to this section Functions
Link to this function
child_spec(arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
start_bridge(pid, local, remote)
View Source
start_bridge(pid, local, remote)
View Source
start_bridge(pid(), Yggdrasil.Channel.t(), Yggdrasil.Channel.t()) ::
{:ok, pid()} | {:error, term()}
start_bridge(pid(), Yggdrasil.Channel.t(), Yggdrasil.Channel.t()) :: {:ok, pid()} | {:error, term()}
Starts a bridge subscriber with a channel
and remote pid
.
Link to this function
start_link(options \\ [])
View Source
start_link(options \\ [])
View Source
start_link(DynamicSupervisor.options()) :: Supervisor.on_start()
start_link(DynamicSupervisor.options()) :: Supervisor.on_start()
Starts a bridge subscriber generator with Supervisor
options
.
Link to this function
stop(generator)
View Source
stop(generator)
View Source
stop(Supervisor.supervisor()) :: :ok
stop(Supervisor.supervisor()) :: :ok
Stops a bridge subscriber generator
.