amqp

package
v0.0.0-...-13f4dd4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amqp

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

Amqp interpret (implement) Amqp interface definition

func New

func New(dsn string, pex bool) (*Amqp, error)

New returns a new Amqp configured, or returning an non-nil err if an error occurred while creating connection or channel.

func (*Amqp) Close

func (ai *Amqp) Close() error

Close closes the running amqp connection and channel

func (*Amqp) CreateConsumer

func (ai *Amqp) CreateConsumer(exchange, key, kind, queue string, durable bool) (<-chan amqp.Delivery, error)

CreateConsumer creates a amqp consumer

func (*Amqp) NotifyClose

func (ai *Amqp) NotifyClose(c chan *amqp.Error) chan *amqp.Error

NotifyClose wrapper over notifyClose method

func (*Amqp) Publish

func (ai *Amqp) Publish(exchange, key string, opts amqp.Publishing) error

Publish wraps amqp.Publish method

func (*Amqp) WithExchange

func (ai *Amqp) WithExchange(exchange, kind string, durable bool) error

WithExchange creates a amqp exchange

func (*Amqp) WithQos

func (ai *Amqp) WithQos(count, size int, global bool) error

WithQos wrapper over amqp.Qos method

Jump to

Keyboard shortcuts

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