rabbitmq

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Overview

Package rabbitmq provides a RabbitMQ broker

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultExchange       = "micro"
	DefaultRabbitURL      = "amqp://guest:guest@127.0.0.1:5672"
	DefaultPrefetchCount  = 0
	DefaultPrefetchGlobal = false
)

Functions

func DurableQueue

func DurableQueue() broker.SubscribeOption

DurableQueue creates a durable queue when subscribing.

func Exchange

func Exchange(e string) broker.Option

Exchange is an option to set the Exchange

func Headers added in v0.6.0

func Headers(h map[string]interface{}) broker.SubscribeOption

Headers adds headers used by the headers exchange

func NewBroker

func NewBroker(opts ...broker.Option) broker.Broker

func PrefetchCount added in v0.14.0

func PrefetchCount(c int) broker.Option

PrefetchCount ...

func PrefetchGlobal added in v0.14.0

func PrefetchGlobal() broker.Option

PrefetchGlobal creates a durable queue when subscribing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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