Documentation ¶
Overview ¶
Package amqpconsumer implements a Subscriber that pulls messages from AMQP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAMQPSubscriber ¶
NewAMQPSubscriber creates a new AMQP Subscriber. config can be nil, in which case it will be set with DefaultConfig.
Types ¶
type Config ¶
type Config struct { Exchange string // queue QDurable bool QAutoDelete bool QExclusive bool QNoWait bool QArgs amqp.Table // queue extra arguments // consumer Consumer string // consumer name CAutoACK bool CExclusive bool CNoLocal bool CNoWait bool CArgs amqp.Table // consumer extra arguments }
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a config with the following defaults:
QDurable: false, QAutoDelete: false, QExclusive: false, QNoWait: false, QArgs: nil, Consumer: "", CAutoACK: false, CExclusive: false, CNoLocal: false, CNoWait: false, CArgs: nil,
Click to show internal directories.
Click to hide internal directories.