View Source Yggdrasil.Adapter.Bridge.Generator (Yggdrasil v6.0.2)

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

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

start_bridge(pid, local, remote)

View Source

Specs

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

Specs

Starts a bridge subscriber generator with Supervisor options.

Specs

stop(Supervisor.supervisor()) :: :ok

Stops a bridge subscriber generator.