Freddy.Core.Bind (freddy v0.17.1)

Queue-Exchange or Exchange-Exchange binding configiration

Options

  • :routing_key - Specifies the routing key for the binding. The routing key is used for routing messages depending on the exchange configuration. Not all exchanges use a routing key - refer to the specific exchange documentation. Default is "#".
  • :nowait - If set, the server will not respond to the method and client will not wait for a reply. Default is false.
  • :arguments - A set of arguments for the binding. The syntax and semantics of these arguments depends on the exchange class.

Example

iex> %Freddy.Core.Bind{routing_key: "a_key"}

Link to this section Summary

Functions

Create binding configuration from keyword list or Freddy.Core.Bind structure.

Link to this section Types

Specs

t() :: %Freddy.Core.Bind{
  arguments: Keyword.t(),
  nowait: boolean(),
  routing_key: String.t()
}

Link to this section Functions

Specs

new(t() | Keyword.t()) :: t()

Create binding configuration from keyword list or Freddy.Core.Bind structure.