inbox

package
v1.20.0 Latest Latest
Warning

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

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

Documentation

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