Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { ID uint64 Queue string ConsumerTag string // contains filtered or unexported fields }
Consumer implements AMQP consumer
func NewConsumer ¶
func NewConsumer(queueName string, consumerTag string, noAck bool, channel interfaces.Channel, queue *queue.Queue, qos []*qos.AmqpQos) *Consumer
NewConsumer returns new instance of Consumer
func (*Consumer) Cancel ¶
func (consumer *Consumer) Cancel()
Cancel stops consumer and send basic.cancel method to the client
func (*Consumer) Consume ¶
Consume send signal into consumer channel, than consumer can try to pop message from queue
func (*Consumer) Pause ¶
func (consumer *Consumer) Pause()
Pause pause consumer, used by channel.flow change
func (*Consumer) Start ¶
func (consumer *Consumer) Start()
Start starting consumer to fetch messages from queue
Click to show internal directories.
Click to hide internal directories.