Amqpx.Helper (amqpx v7.0.0)
Helper functions
Summary
Types
@type dead_letter_queue_spec() :: %{ :queue => Amqpx.Basic.queue(), :exchange => Amqpx.Basic.exchange(), :routing_key => String.t(), optional(:original_routing_keys) => [String.t()], optional(:queue_opts) => Keyword.t() }
@type exchange_spec() :: %{ name: Amqpx.Basic.exchange(), type: atom(), routing_keys: [String.t()], opts: Keyword.t() }
@type queue_spec() :: %{ :queue => Amqpx.Basic.queue(), :exchanges => [exchange_spec()], optional(:opts) => Keyword.t() }
Functions
@spec consumers_supervisor_configuration([handler_conf :: map()]) :: [ Supervisor.child_spec() ]
@spec declare(Amqpx.Channel.t(), queue_spec()) :: :ok | no_return()
@spec get_password(Keyword.t(), Keyword.t() | nil) :: Keyword.value()
@spec manager_supervisor_configuration(Keyword.t()) :: module_spec()
@spec producer_supervisor_configuration(producer_conf :: map()) :: module_spec()
@spec setup_dead_lettering(Amqpx.Channel.t(), dead_letter_queue_spec()) :: :ok | {:ok, map()} | Amqpx.Basic.error()
@spec setup_exchange(Amqpx.Channel.t(), Amqpx.Basic.queue(), exchange_spec()) :: :ok | Amqpx.Basic.error() | no_return()
@spec setup_queue(Amqpx.Channel.t(), queue_spec()) :: :ok | no_return()