queue

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Key     string
	Payload any
	RunAt   time.Time
}

Job represents a scheduled unit of work (e.g., send notification later).

type Nop

type Nop struct{}

Nop queue swallows jobs (used for tests or disabled scheduling).

func (*Nop) Enqueue

func (n *Nop) Enqueue(ctx context.Context, job Job) error

type Queue

type Queue interface {
	Enqueue(ctx context.Context, job Job) error
}

Queue represents the go-job compatible enqueue interface required by the dispatcher.

Jump to

Keyboard shortcuts

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