adapter

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// Push adds a single job to the queue.
	Push(queueName string, job job.Job, time ...time.Duration) error
	GetDbConnection() interface{}
	// PushBatch adds multiple jobs to the queue in a single call.
	PushBatch(queueName string, jobs []job.Job, time ...time.Duration) error
	Pop(queueName string) (job.JobContext, error)
	Ack(queueName string, payload string) error
	Retry(job job.Job, delay time.Duration) error
	RetryJobWithMetadata(queueName string, job job.JobContext, delay ...time.Duration) error
	EnqueueMetrics(metrics config.JobMetrics) error
	DequeueMetrics(queueName string) (config.JobMetrics, error)
	IsHealthy() bool
}

Directories

Path Synopsis
dlq
Package dlq provides the Dead Letter Queue (DLQ) interface for handling failed jobs.
Package dlq provides the Dead Letter Queue (DLQ) interface for handling failed jobs.

Jump to

Keyboard shortcuts

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