Documentation ¶
Overview ¶
Package rabbitmq provides a RabbitMQ broker
Index ¶
- Variables
- func DurableQueue() broker.SubscribeOption
- func Exchange(e string) broker.Option
- func Headers(h map[string]interface{}) broker.SubscribeOption
- func NewBroker(opts ...broker.Option) broker.Broker
- func PrefetchCount(c int) broker.Option
- func PrefetchGlobal() broker.Option
- func RequeueOnError() broker.SubscribeOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultExchange = "micro" DefaultRabbitURL = "amqp://guest:guest@127.0.0.1:5672" DefaultPrefetchCount = 0 DefaultPrefetchGlobal = false DefaultRequeueOnError = false )
Functions ¶
func DurableQueue ¶
func DurableQueue() broker.SubscribeOption
DurableQueue creates a durable queue when subscribing.
func Headers ¶ added in v0.6.0
func Headers(h map[string]interface{}) broker.SubscribeOption
Headers adds headers used by the headers exchange
func PrefetchGlobal ¶ added in v0.14.0
PrefetchGlobal creates a durable queue when subscribing.
func RequeueOnError ¶ added in v0.15.0
func RequeueOnError() broker.SubscribeOption
RequeueOnError calls Nack(muliple:false, requeue:true) on amqp delivery when handler returns error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.