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" )
View Source
var DefaultAutoAck = false
View Source
var DefaultDurable = true
View Source
var RouteHandlers = make(map[string]func(context.Context, *protos.EsbMessage, *protos.EsbMessage) error)
Functions ¶
func DurableQueue ¶
func DurableQueue() broker.SubscribeOption
DurableQueue creates a durable queue when subscribing.
func Headers ¶
func Headers(h map[string]interface{}) broker.SubscribeOption
Headers adds headers used by the headers exchange
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.