amqp

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer added in v0.4.2

type Consumer struct {
	// contains filtered or unexported fields
}

Consumer defines a AMQP subscriber.

func New

func New(name, url, queue, exchange string, requeue bool, buffer int) (*Consumer, error)

New creates a new AMQP consumer.

func (*Consumer) Close added in v0.4.2

func (c *Consumer) Close() error

Close handles closing channel and connection of AMQP.

func (*Consumer) Consume added in v0.4.2

func (c *Consumer) Consume(ctx context.Context) (<-chan async.Message, <-chan error, error)

Consume starts of consuming a AMQP queue.

Jump to

Keyboard shortcuts

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