Documentation
¶
Index ¶
Constants ¶
View Source
const ( MessageStatusPending string = "pending" MessageStatusProcessed string = "processed" MessageStatusFailed string = "failed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
ID uuid.UUID
AggregateID int
AggregateType string
Topic string
Payload []byte
CreatedAt time.Time
ProcessedAt sql.NullTime
NextAttemptAt sql.NullTime
Status string
RetryCount int
MaxRetries int // Legacy field; transient publishing failures are retried without a limit.
LastError string
Metadata map[string]string `gorm:"serializer:json"`
}
Click to show internal directories.
Click to hide internal directories.