Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsumeQueue ¶
func ConsumeQueue(conn *amqp.Connection, conf QueueConf, f func(amqp.Delivery))
ConsumeQueue calls handler function on each message delivered to a queue. This is blocking operation.
func Process ¶
func Process(conn *amqp.Connection, actions ...action) error
Process executes actions in order they passed. Non-blocking operation.
Types ¶
type ExchangeDeclare ¶
type ExchangeDeclare struct { Exchange string Kind string Durable bool AutoDelete bool Internal bool NoWait bool }
ExchangeDeclare action which creates new exchange
type QueueConf ¶
type QueueConf struct { Name string AutoAck bool Exclusive bool NoLocal bool NoWait bool PrefetchSize int PrefetchCount int Global bool }
QueueDeclare configuration for consuming queue with ConsumeQueue() method
type QueueDeclare ¶
QueueDeclare action which creates new queue
Click to show internal directories.
Click to hide internal directories.