subscribex v0.10.0-rc.0 Subscribex.Broker
Defines a Broker.
The broker expects the :otp_app
as an option. The :otp_app
should point to an OTP application that has the broker
configuration. For example, the broker:
defmodule Broker do
use Subscribex.Broker, otp_app: :my_app
end
Could be configured with:
config :my_app, Broker,
host: "localhost",
username: "guest",
password: "guest",
port: 5672
URLs
Brokers by default support URLs. For example, the configuration above could be rewritten to:
config :my_app, Broker,
url: "amqp://guest:guest@localhost:5672"
Summary
Types
callback :: (... -> callback_return)
callback_return :: term
channel :: %AMQP.Channel{conn: term, pid: term}
delivery_tag :: term
t :: module