amqpconsumer

package
v0.0.0-...-e42251a Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2015 License: BSD-3-Clause Imports: 5 Imported by: 0

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

func NewAMQPSubscriber(queue string, config *Config, retry *amqputil.Retry) celery.Subscriber

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,

Jump to

Keyboard shortcuts

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