Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "1.2.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
AmqpURI string
Exchange string
ExchangeType string
QueueName string
Key string
MessageTTL int32 // How long to retain messages in the queue
Durable bool // Queue durable?
}
Config is the settings for the consumer
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer holds state for the AMQP consumer
func NewConsumer ¶
NewConsumer create and configure a new consumer, this also triggers a connection to AMQP server
Click to show internal directories.
Click to hide internal directories.