HareMq.Exchange (hare_mq v1.3.0)

Module providing functions for managing RabbitMQ exchanges.

This module includes functions for declaring and binding exchanges.

Summary

Functions

Bind a RabbitMQ exchange to a destination.

Declare a RabbitMQ exchange.

Functions

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")

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")