meq

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 6 Imported by: 0

README

meq

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Ping() error
	Shutdown() error
}

func NewAsynqDB

func NewAsynqDB(logger ezutil.Logger, opts asynq.RedisConnOpt) DB

type TaskQueue

type TaskQueue[T task.Message] interface {
	Enqueue(ctx context.Context, source string, message T) error
	GetAllPending(ctx context.Context) ([]task.Task[T], error)
	DeleteAll(ctx context.Context) error
	GetOldest(ctx context.Context) (task.Task[T], string, error)
	Delete(ctx context.Context, id string) error
}

func NewTaskQueue

func NewTaskQueue[T task.Message](logger ezutil.Logger, db DB) TaskQueue[T]

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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