amqp

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory added in v0.14.0

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

Factory of a AMQP consumer

func New

func New(url, queue, exchange string, oo ...OptionFunc) (*Factory, error)

New constructor.

func (*Factory) Create added in v0.14.0

func (f *Factory) Create() (async.Consumer, error)

Create a new consumer.

type OptionFunc added in v0.4.3

type OptionFunc func(*consumer) error

OptionFunc definition for configuring the consumer in a functional way.

func Buffer added in v0.4.3

func Buffer(buf int) OptionFunc

Buffer option for adjusting the incoming messages buffer.

func Requeue added in v0.4.3

func Requeue(requeue bool) OptionFunc

Requeue option for adjusting the requeue policy of a message.

func Timeout added in v0.4.3

func Timeout(timeout time.Duration) OptionFunc

Timeout option for adjusting the timeout of the connection.

Jump to

Keyboard shortcuts

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