outbox

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package outbox implements the Transactional Outbox pattern: events are stored in the caller's DB transaction and a relay ships them to NATS asynchronously.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntegrationEvent

type IntegrationEvent interface {
	Subject() string
	Version() string
}

IntegrationEvent is the constraint for publishable integration events.

type Outbox

type Outbox interface {
	Store(ctx context.Context, e IntegrationEvent) error
}

Outbox stores integration events to the outbox for at-least-once delivery to the central message bus.

Jump to

Keyboard shortcuts

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