Amqp

package
v0.0.0-...-7f82f8f Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Transient  uint8 = 1
	Persistent uint8 = 2

	PriorityMax uint8 = 9
	PriorityMin uint8 = 0
)

Variables

This section is empty.

Functions

func ConnectMq

func ConnectMq(url string) (conn *amqp.Connection, channel *amqp.Channel, err error)

func NewExclusiveMqConsumer

func NewExclusiveMqConsumer(url, exchange, queue, rkey, ctag string, ack, durable bool) (
	conn *amqp.Connection, channel *amqp.Channel, deliveries <-chan amqp.Delivery, err error)

func NewMqConsumer

func NewMqConsumer(url, exchange, queue, rkey, ctag string, ack, durable bool) (
	conn *amqp.Connection, channel *amqp.Channel, deliveries <-chan amqp.Delivery, err error)

func NewMqExchange

func NewMqExchange(channel *amqp.Channel, name, _type string, durable bool) error

func NewMqQueue

func NewMqQueue(channel *amqp.Channel, exchange, queue, rkey string, durable, exclusive bool) error

func PriorityPublish

func PriorityPublish(channel *amqp.Channel, exchange, rkey string, savedisk, priority uint8, msg []byte) error

func Publish

func Publish(channel *amqp.Channel, exchange, rkey string, msg []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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