queue

package
v0.0.0-...-71fdf4a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInternal = errors.New("queue: internal failure")
View Source
var ErrQueueMissing = errors.New("missing queue")

Functions

func NewMessagesWriterMock

func NewMessagesWriterMock() model.MessageWriter

Types

type Service

type Service interface {
	SetQueue(ctx context.Context, name string, limit uint32) (err error)
	NewQueueWriter(ctx context.Context, name string) (mw model.MessageWriter, err error)
	ReceiveMessages(ctx context.Context, queue string, batchSize uint32, consume util.ConsumeFunc[[]*pb.CloudEvent]) (n uint32, err error)
}

func NewLoggingMiddleware

func NewLoggingMiddleware(svc Service, log *slog.Logger) Service

func NewService

func NewService(client ServiceClient) Service

func NewServiceMock

func NewServiceMock() Service

Jump to

Keyboard shortcuts

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