Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusPending = "pending" StatusPublishing = "publishing" StatusPublished = "published" StatusFailed = "failed" DefaultPublishingStaleFor = time.Minute DefaultRelayRetryDelay = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func BuildStatusSnapshot ¶
func BuildStatusSnapshot(store string, now time.Time, observations []StatusObservation) outboxport.StatusSnapshot
func UnfinishedStatuses ¶
func UnfinishedStatuses() []string
Types ¶
type BuildRecordsOptions ¶
type BuildRecordsOptions struct {
Events []event.DomainEvent
Resolver eventcatalog.TopicResolver
Delivery eventcatalog.DeliveryClassResolver
Now time.Time
}
type Record ¶
type Record struct {
EventID string
EventType string
AggregateType string
AggregateID string
TopicName string
PayloadJSON string
Status string
AttemptCount int
NextAttemptAt time.Time
CreatedAt time.Time
UpdatedAt time.Time
}
func BuildRecords ¶
func BuildRecords(opts BuildRecordsOptions) ([]Record, error)
Click to show internal directories.
Click to hide internal directories.