channels v0.0.1 Channels.Adapter behaviour
This module specifies the adapter API that an AMQP adapter is required to implement.
Summary
Callbacks
Ack a message
Bind a queue to an exchange
Close a channel
Starts an AMQP connection with the given config
Subscribe the given pid to a queue and receive messages
Declares an exchange
Declares a queue
Closes an AMQP connection with the given config
Transform the given message to the expected format
Monitors the given AMQP connection
Nack a message
Start a channel on the given connection
Publish a message
Reject a message
Types
Callbacks
Bind a queue to an exchange
Starts an AMQP connection with the given config
Subscribe the given pid to a queue and receive messages
Declares an exchange
Declares a queue
Specs
Transform the given message to the expected format
Start a channel on the given connection
Specs
publish(chan, exchange, payload, routing_key, opts) :: :ok
Publish a message