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

inbox

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 inbox holds the idempotent-consumer inbox row: the marker a domain step records, inside its own transaction, for every event it has processed, so a redelivered event is skipped (ADR-001 step 2).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	Consumer    string    `gorm:"primaryKey;type:varchar(64);not null;comment:Consuming domain step"`
	EventKey    string    `gorm:"primaryKey;type:varchar(191);not null;comment:Business key of the event"`
	Result      string    `gorm:"type:varchar(255);not null;default:'';comment:Optional outcome needed by later steps"`
	ProcessedAt time.Time `gorm:"<-:create;autoCreateTime"`
}

Record marks a domain event as processed by one consuming domain step. Inserting it inside the consumer's transaction makes at-least-once event deliveries idempotent (idempotent-consumer/inbox pattern, ADR-001 step 2).

func (Record) TableName

func (Record) TableName() string

Jump to

Keyboard shortcuts

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