Rambla v0.3.0 Rambla View Source
Interface for the message publishing through Rambla
.
Rambla
maintains connection pools with a dynamix supervisor.
It might be read from the config or passed as a parameter in a call to
Rambla.start_pools/1
. The latter expects a keyword list of pools to add,
each declared with the name of the worker and the options with the following keys:
:type
the type of the worker; defaults to:local
:name
the name of the worker; defaults to the module name:options
options to be passed to the worker initialization in:poolboy
, like[size: 5, max_overflow: 300]
:params
arguments to be passed to the worker during initialization
Link to this section Summary
Functions
Publishes the message to the target pool. The message structure depends on
the destination. For RabbitMQ
is might be whatever, for Smtp
it expects
to have to:
, subject:
and body:
fields.
Starts the pools configured in the config.exs
/ releases.exs
file.
Starts the pools as specified by options (map()
or keyword()
)
Link to this section Functions
Publishes the message to the target pool. The message structure depends on
the destination. For RabbitMQ
is might be whatever, for Smtp
it expects
to have to:
, subject:
and body:
fields.
Starts the pools configured in the config.exs
/ releases.exs
file.
This call is equivalent to start_pools(Application.get_env(:rambla, :pools))
.
Starts the pools as specified by options (map()
or keyword()
)