consumer

package
v0.1.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConcurrency

func WithConcurrency(concurrency int) func(*consumerImplOptions)

func WithName

func WithName(name string) func(*consumerImplOptions)

Types

type Consumer

type Consumer interface {
	Run(context.Context) error
}

func New

func New(subscription mqs.Subscription, handler MessageHandler, opts ...func(*consumerImplOptions)) Consumer

type MessageHandler

type MessageHandler interface {
	Handle(context.Context, *mqs.Message) error
}

Jump to

Keyboard shortcuts

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