parkinglot

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Receiver

type Receiver struct {
	// contains filtered or unexported fields
}

func NewReceiver

func NewReceiver(client *amqpx.Client, opts ...ReceiverOption) *Receiver

func (*Receiver) Receive

func (r *Receiver) Receive(ctx context.Context, processor eventbus.Processor) error

func (*Receiver) Setup

func (r *Receiver) Setup(ctx context.Context, consumerName string, infos ...eventbus.ServiceInfo) error

type ReceiverOption

type ReceiverOption func(o *receiverOptions)

func WithBindingsSetup

func WithBindingsSetup() ReceiverOption

func WithIncomingQueue added in v0.2.4

func WithIncomingQueue(queue string) ReceiverOption

func WithMarshaler

func WithMarshaler(m rabbitmq.Marshaler) ReceiverOption

func WithMaxRetries

func WithMaxRetries(n int) ReceiverOption

func WithMinRetryBackoff

func WithMinRetryBackoff(d time.Duration) ReceiverOption

func WithPrefetchCount

func WithPrefetchCount(c int) ReceiverOption

func WithTopologySetup

func WithTopologySetup() ReceiverOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL