Yggdrasil v5.0.0 Yggdrasil.Publisher.Generator View Source
Generator of publisher pools.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Starts a publisher generator with Supervisor
options
.
Starts a publisher using the generator
and the channel
to identify the
connection.
Stops a publisher 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_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 publisher generator with Supervisor
options
.
Link to this function
start_publisher(generator, channel)
View Source
start_publisher(generator, channel)
View Source
start_publisher(Supervisor.supervisor(), Yggdrasil.Channel.t()) ::
DynamicSupervisor.on_start_child()
start_publisher(Supervisor.supervisor(), Yggdrasil.Channel.t()) :: DynamicSupervisor.on_start_child()
Starts a publisher using the generator
and the channel
to identify the
connection.
Link to this function
stop(generator)
View Source
stop(generator)
View Source
stop(Supervisor.supervisor()) :: :ok
stop(Supervisor.supervisor()) :: :ok
Stops a publisher generator
.