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

outbox

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package outbox holds the generic domain-event outbox row (ADR-001 step-6 preparation): appended in the owning domain's transaction, published onto the asynq queue by the dispatch pump, consumed idempotently via the inbox.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID       int64  `gorm:"primaryKey;autoIncrement"`
	Topic    string `gorm:"type:varchar(64);not null"`
	EventKey string `gorm:"type:varchar(191);not null"`
	Payload  string `gorm:"type:text;not null"`
	// TraceCarrier is the producing request's W3C trace context (a JSON
	// map), captured at append time so the event's delivery joins the
	// originating trace.
	TraceCarrier string `gorm:"type:varchar(1024);not null;default:''"`
	CreatedAt    time.Time
	PublishedAt  *time.Time
}

func (Event) TableName

func (Event) TableName() string

Jump to

Keyboard shortcuts

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