Documentation
¶
Overview ¶
Package model provides shared domain types used across multiple internal packages, breaking circular dependencies between layers (e.g. store and webhook).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttemptRecord ¶
type AttemptRecord struct {
Attempt int `json:"attempt"`
Error string `json:"error"`
At time.Time `json:"at"`
}
AttemptRecord records a single retry attempt.
type DeadLetter ¶
type DeadLetter struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
Event string `json:"event"`
UserID string `json:"user_id"`
Payload json.RawMessage `json:"payload"`
RetryCount int `json:"retry_count"`
LastError string `json:"last_error"`
AttemptHistory []AttemptRecord `json:"attempt_history"`
CreatedAt time.Time `json:"created_at"`
FailedAt time.Time `json:"failed_at"`
}
DeadLetter represents a failed webhook task with retry history.
Click to show internal directories.
Click to hide internal directories.