Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRetriableError ¶
NewRetriableError creates a new retriable error
Types ¶
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
type EventProcessing ¶
type EventProcessing struct {
EventID int64 `db:"event_id"`
Subscriber string `db:"subscriber"`
Status string `db:"status"`
RetryCount int `db:"retry_count"`
CreatedAt time.Time `db:"created_at"`
Heartbeat time.Time `db:"heartbeat"`
LastAttempt time.Time `db:"last_attempt"`
ErrorMessage *string `db:"error_message"`
FinishedAt *time.Time `db:"finished_at"`
NextAttempt *time.Time `db:"next_attempt"`
}
type RetriableError ¶
type RetriableError struct {
Err error
}
RetriableError wraps an error that should be retried
func (*RetriableError) Error ¶
func (e *RetriableError) Error() string
func (*RetriableError) Unwrap ¶
func (e *RetriableError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.