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

outbox

package
v0.9.82 Latest Latest
Warning

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

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

Documentation

Overview

Package outbox implements the transactional outbox pattern. Its service queues messages, a publisher sends them to the message broker, and a cleaner removes successfully processed messages after the configured retention period.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service)

func WithLogger

func WithLogger(logger *slog.Logger) Option

type Service

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

func NewService

func NewService(repository repository, opts ...Option) *Service

func (*Service) NewOutboxMessage

func (s *Service) NewOutboxMessage(ctx context.Context, topic string, msg *domain.Message) error

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
mocks
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