go-rabbitmq icon indicating copy to clipboard operation
go-rabbitmq copied to clipboard

A queue can accept multiple bindings from multiple exchanges

Open qingo opened this issue 1 year ago • 1 comments

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.:

qingo avatar Nov 23 '23 03:11 qingo

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
}

qingo avatar Nov 23 '23 03:11 qingo