// getDefaultConsumeOptions descibes the options that will be used when a value isn't provided
funcgetDefaultConsumeOptions()ConsumeOptions{
returnConsumeOptions{
QueueDurable:false,
QueueAutoDelete:false,
QueueExclusive:false,
QueueNoWait:false,
QueueArgs:nil,
BindingExchange:nil,
BindingNoWait:false,
BindingArgs:nil,
Concurrency:1,
QOSPrefetch:0,
QOSGlobal:false,
ConsumerName:"",
ConsumerAutoAck:false,
ConsumerExclusive:false,
ConsumerNoWait:false,
ConsumerNoLocal:false,
ConsumerArgs:nil,
}
}
// ConsumeOptions are used to describe how a new consumer will be created.
typeConsumeOptionsstruct{
QueueDurablebool
QueueAutoDeletebool
QueueExclusivebool
QueueNoWaitbool
QueueArgsTable
BindingExchange*BindingExchangeOptions
BindingNoWaitbool
BindingArgsTable
Concurrencyint
QOSPrefetchint
QOSGlobalbool
ConsumerNamestring
ConsumerAutoAckbool
ConsumerExclusivebool
ConsumerNoWaitbool
ConsumerNoLocalbool
ConsumerArgsTable
}
// getBindingExchangeOptionsOrSetDefault returns pointer to current BindingExchange options. if no BindingExchange options are set yet, it will set it with default values.
// WithConsumeOptionsBindingExchangeArgs returns a function that sets the binding exchange arguments that are specific to the server's implementation of the exchange
// getDefaultConsumeOptions descibes the options that will be used when a value isn't provided
funcgetDefaultConsumeOptions()ConsumeOptions{
returnConsumeOptions{
QueueDurable:false,
QueueAutoDelete:false,
QueueExclusive:false,
QueueNoWait:false,
QueueArgs:nil,
BindingExchange:nil,
BindingNoWait:false,
BindingArgs:nil,
Concurrency:1,
QOSPrefetch:0,
QOSGlobal:false,
ConsumerName:"",
ConsumerAutoAck:false,
ConsumerExclusive:false,
ConsumerNoWait:false,
ConsumerNoLocal:false,
ConsumerArgs:nil,
}
}
// ConsumeOptions are used to describe how a new consumer will be created.
typeConsumeOptionsstruct{
QueueDurablebool
QueueAutoDeletebool
QueueExclusivebool
QueueNoWaitbool
QueueArgsTable
BindingExchange*BindingExchangeOptions
BindingNoWaitbool
BindingArgsTable
Concurrencyint
QOSPrefetchint
QOSGlobalbool
ConsumerNamestring
ConsumerAutoAckbool
ConsumerExclusivebool
ConsumerNoWaitbool
ConsumerNoLocalbool
ConsumerArgsTable
}
// getBindingExchangeOptionsOrSetDefault returns pointer to current BindingExchange options. if no BindingExchange options are set yet, it will set it with default values.
// WithConsumeOptionsBindingExchangeArgs returns a function that sets the binding exchange arguments that are specific to the server's implementation of the exchange