riverx

package
v0.0.0-...-dec42e4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobArgs

type JobArgs struct {
	UserID uuid.UUID
}

func (JobArgs) Kind

func (ja JobArgs) Kind() string

Kind implements river.JobArgs.

type Worker

type Worker struct {
	river.WorkerDefaults[JobArgs]
	// contains filtered or unexported fields
}

func New

func New(pool *pgxpool.Pool) *Worker

func (*Worker) Work

func (w *Worker) Work(ctx context.Context, job *river.Job[JobArgs]) error

Work implements river.Worker.

Jump to

Keyboard shortcuts

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