Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusProcessing = "PROCESSING" StatusSent = "SENT" )
Outbox message status constants.
Variables ¶
This section is empty.
Functions ¶
func EnsureIndexes ¶ added in v0.3.5
EnsureIndexes creates required indexes for outbox collection. This is idempotent - safe to call multiple times.
func NewOutboxModule ¶
NewOutboxModule provides outbox pattern components for reliable message delivery.
Types ¶
type Config ¶
type Config struct {
// MaxBackoff is the maximum delay between retry attempts.
// Default: 10 hours
MaxBackoff time.Duration `mapstructure:"max-backoff"`
}
Config holds the outbox pattern configuration.
type Message ¶
type Message struct {
Event events.Event // Event payload - must implement events.Event interface
Key string // Kafka partition key for ordering guarantees
Headers map[string]string // Kafka headers for trace propagation, etc.
}
Message represents a message to be sent via the outbox pattern.
Click to show internal directories.
Click to hide internal directories.