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).
Click to show internal directories.
Click to hide internal directories.