HareMq.Configuration (hare_mq v0.1.0)

Configuration module for HareMq.

This module provides functions for configuring HareMq components, such as queues and connections.

Summary

Functions

Structure representing the configuration for a queue.

Get the configuration for a queue.

Functions

Link to this function

%HareMq.Configuration{}

(struct)

Structure representing the configuration for a queue.

Fields

  • :channel: The AMQP channel.
  • :queue_name: The name of the queue.
  • :delay_queue_name: The name of the delay queue.
  • :dead_queue_name: The name of the dead letter queue.
  • :exchange: The AMQP exchange.
  • :routing_key: The routing key.
  • :delay_in_ms: The delay in milliseconds.
  • :message_ttl: The message time-to-live.
  • :retry_limit: The number of retry attempts.
  • :durable: Whether the queue is durable or not.

Examples

config = %Configuration{...}
Link to this function

get_queue_configuration(list)

Get the configuration for a queue.

Examples

config = get_queue_configuration(
  channel: channel,
  name: name,
  exchange: exchange,
  routing_key: routing_key
)