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

models

package
v0.9.82 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 3 Imported by: 0

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"`
}

func (*Message) TableName

func (m *Message) TableName() string

Jump to

Keyboard shortcuts

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