consumer

package
v0.0.0-...-654e1bf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WireSet = wire.NewSet(
	NewConsumer,
)

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Start(ctx context.Context) error
	RegisterHandler(queueName string, handlerFunc HandlerFunc)
}

func NewConsumer

func NewConsumer(
	mqConfig configs.MQ,
	logger *zap.Logger,
) (Consumer, error)

type HandlerFunc

type HandlerFunc func(ctx context.Context, payload []byte) error

Jump to

Keyboard shortcuts

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