model

package
v0.0.0-...-5ed4770 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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