Documentation ¶
Overview ¶
Package exchange takes care of RabbitMQ Exchange declarations. If the type Exchange were to be used directly it would end-up like:
Exchange{ Name: "", Kind: "", Durable: false, AutoDelete: false, Internal: false, NoWait: false, Args: nil, }
Becase of that, the New method allows better sensible options, so it would be this:
Exchange{ Name: "", Kind: "direct", Durable: true, AutoDelete: false, Internal: false, NoWait: false, Args: nil, }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exchange ¶
type Exchange struct { Name string // Possible options are direct, fanout, topic and headers. Kind string Durable bool AutoDelete bool Internal bool NoWait bool Args amqp.Table }
Exchange holds the definition of an AMQP exchange.
Click to show internal directories.
Click to hide internal directories.