Documentation ¶
Overview ¶
Package consumer is the generic consumer-side processing logic for the four modes direct, topic, fanout, headers
Index ¶
- type ConsumeOption
- func WithConsumeArgs(args map[string]interface{}) ConsumeOption
- func WithConsumeAutoAck(enable bool) ConsumeOption
- func WithConsumeConsumer(consumer string) ConsumeOption
- func WithConsumeExclusive(enable bool) ConsumeOption
- func WithConsumeNoLocal(enable bool) ConsumeOption
- func WithConsumeNoWait(enable bool) ConsumeOption
- func WithConsumeQos(opts ...QosOption) ConsumeOption
- type Handler
- type QosOption
- type Queue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumeOption ¶
type ConsumeOption func(*consumeOptions)
ConsumeOption consume option.
func WithConsumeArgs ¶
func WithConsumeArgs(args map[string]interface{}) ConsumeOption
WithConsumeArgs set consume args option.
func WithConsumeAutoAck ¶
func WithConsumeAutoAck(enable bool) ConsumeOption
WithConsumeAutoAck set consume auto ack option.
func WithConsumeConsumer ¶
func WithConsumeConsumer(consumer string) ConsumeOption
WithConsumeConsumer set consume consumer option.
func WithConsumeExclusive ¶
func WithConsumeExclusive(enable bool) ConsumeOption
WithConsumeExclusive set consume exclusive option.
func WithConsumeNoLocal ¶
func WithConsumeNoLocal(enable bool) ConsumeOption
WithConsumeNoLocal set consume noLocal option.
func WithConsumeNoWait ¶
func WithConsumeNoWait(enable bool) ConsumeOption
WithConsumeNoWait set consume no wait option.
func WithConsumeQos ¶
func WithConsumeQos(opts ...QosOption) ConsumeOption
WithConsumeQos set consume qos option.
type QosOption ¶
type QosOption func(*qosOptions)
QosOption qos option.
func WithQosPrefetchCount ¶
WithQosPrefetchCount set qos prefetch count option.
func WithQosPrefetchGlobal ¶
WithQosPrefetchGlobal set qos global option.
func WithQosPrefetchSize ¶
WithQosPrefetchSize set qos prefetch size option.