HareMq.Exchange (hare_mq v0.1.0)
Module providing functions for managing RabbitMQ exchanges.
This module includes functions for declaring and binding exchanges.
Summary
Functions
Link to this function
bind(list)
Bind a RabbitMQ exchange to a destination.
Parameters
:channel
: The AMQP channel.:destination
: The name of the destination exchange or queue.:source
: The name of the source exchange.:routing_key
: The routing key.
Examples
HareMq.Exchange.bind(channel: channel, destination: "destination_exchange", source: "my_exchange", routing_key: "my_routing_key")
Link to this function
declare(list)
Declare a RabbitMQ exchange.
Parameters
:channel
: The AMQP channel.:name
: The name of the exchange.:type
: The type of the exchange.
Examples
HareMq.Exchange.declare(channel: channel, name: "my_exchange", type: :direct)
HareMq.Exchange.declare(channel: channel, name: "my_exchange")