consumer

package
v1.0.0-beta.133 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

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

func New

func New(opts Options) (*Consumer, error)

func (*Consumer) Close

func (w *Consumer) Close() error

func (*Consumer) Run

func (w *Consumer) Run(ctx context.Context) error

type DLQOptions

type DLQOptions struct {
	Topic            string
	Throttle         bool
	ThrottleDuration time.Duration
	ThrottleCount    int64
}

type Options

type Options struct {
	SystemEventsTopic string
	Subscriber        message.Subscriber

	Publisher message.Publisher

	DLQ *DLQOptions

	Entitlement *registry.Entitlement

	Logger *slog.Logger
}

Jump to

Keyboard shortcuts

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