Documentation
¶
Index ¶
Constants ¶
View Source
const ( DelayedMessage = "x-delayed-message" DelayedType = "x-delayed-type" DefaultDelayType = "topic" )
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
func NewConnection(options *Options) (*amqp.Connection, error)
Types ¶
type Binding ¶
type Binding struct { Exchange string `yaml:"exchange"` Key string `yaml:"key"` Nowait bool `yaml:"nowait"` }
Binding specifies to which exchange should be an exchange or a queue binded
type Client ¶
type Exchange ¶
type Exchange struct { Durable bool `yaml:"durable"` AutoDelete bool `yaml:"auto-delete"` Internal bool `yaml:"internal"` Nowait bool `yaml:"nowait"` Type string `yaml:"type"` Bindings []Binding `yaml:"bindings"` Args map[string]interface{} }
Exchange is structure with specification of properties of RabbitMQ exchange
type Options ¶
type Options struct { Addresses string `yaml:"addresses"` Username string `yaml:"username"` Password string `yaml:"password"` VirtualHost string `yaml:"virtual-host"` Exchanges map[string]Exchange `yaml:"exchanges"` Queues map[string]QueueSpec `yaml:"queues"` }
Settings is a specification of all queues and exchanges together with all bindings.
Click to show internal directories.
Click to hide internal directories.