queue

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FailedJob

type FailedJob struct {
	Job       Job
	Error     string
	FailedAt  time.Time
	Attempts  int
	Exhausted bool
}

type Job

type Job struct {
	Type           string
	Payload        []byte
	IdempotencyKey string
	Queue          string
	Priority       int
}

type Queue

type Queue interface {
	Enqueue(ctx context.Context, job Job) error
	Schedule(ctx context.Context, job Job, runAt time.Time) error
	FailedJobs(ctx context.Context, queue string) ([]FailedJob, error)
}

Jump to

Keyboard shortcuts

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