go-rabbitmq
go-rabbitmq copied to clipboard
A queue can accept multiple bindings from multiple exchanges
In ConsumerOptions, I want to take the bindings to ExchangeOptions and use ExchangeOptions as a slice. This way, a queue can accept multiple bindings from multiple exchanges.:
type ConsumerOptions struct {
RabbitConsumerOptions RabbitConsumerOptions
QueueOptions QueueOptions
ExchangeOptionsSlice []ExchangeOptions
Concurrency int
Logger logger.Logger
QOSPrefetch int
QOSGlobal bool
}
type ExchangeOptions struct {
Name string
Kind string
Durable bool
AutoDelete bool
Internal bool
NoWait bool
Passive bool
Args Table
Declare bool
Bindings []Binding
}