amqpcon

package module
v0.0.0-...-e96741f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2015 License: MIT Imports: 3 Imported by: 1

README

amqp-consumer

Boilerplate AMQP consumer setup

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	Done chan error
	// contains filtered or unexported fields
}

Consumer wraps the AMQP connection and channel

func NewConsumer

func NewConsumer(amqpURI, exchange, exchangeType, queueName, key,
	ctag string) (*Consumer, error)

NewConsumer Creates a new consumer based on the URL and exchange type

func (*Consumer) Consume

func (c *Consumer) Consume(queue string) (<-chan amqp.Delivery, error)

Consume receives a queue name and returns a channel with the queue deliveries

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL