Help us shape the future of Go! Take the 2026 Go Developer Survey

workers

package
v0.9.79 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutboxMessageCleaner added in v0.9.79

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

func NewOutboxMessageCleaner added in v0.9.79

func NewOutboxMessageCleaner(
	repository cleanupRepository, opts ...OutboxMessageCleanerOption,
) *OutboxMessageCleaner

func (*OutboxMessageCleaner) Run added in v0.9.79

func (c *OutboxMessageCleaner) Run(ctx context.Context, interval, retention time.Duration, batchSize int)

Run deletes one batch at each interval. Retention starts when a message is successfully processed.

type OutboxMessageCleanerOption added in v0.9.79

type OutboxMessageCleanerOption func(*OutboxMessageCleaner)

func OutboxMessageCleanerWithLogger added in v0.9.79

func OutboxMessageCleanerWithLogger(logger *slog.Logger) OutboxMessageCleanerOption

type OutboxMessagePublisher

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

func NewOutboxMessagePublisher

func NewOutboxMessagePublisher(
	repository repository,
	publisher publisher,
	opts ...OutboxMessagePublisherOption,
) *OutboxMessagePublisher

func (*OutboxMessagePublisher) Run

func (p *OutboxMessagePublisher) Run(
	ctx context.Context, interval time.Duration, batchSize int,
)

type OutboxMessagePublisherOption

type OutboxMessagePublisherOption func(*OutboxMessagePublisher)

func OutboxMessagePublisherWithLogger

func OutboxMessagePublisherWithLogger(logger *slog.Logger) OutboxMessagePublisherOption

func OutboxMessagePublisherWithPublishTimeout added in v0.9.79

func OutboxMessagePublisherWithPublishTimeout(timeout time.Duration) OutboxMessagePublisherOption

func OutboxMessagePublisherWithRetryBackoff added in v0.9.79

func OutboxMessagePublisherWithRetryBackoff(initial, maximum time.Duration) OutboxMessagePublisherOption

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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