river

package
v0.0.0-...-2940e87 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RiverJobs

type RiverJobs struct {
	// contains filtered or unexported fields
}

func NewRiverJobs

func NewRiverJobs(pool *pgxpool.Pool, queuePrefix string) (*RiverJobs, error)

func (*RiverJobs) AddJob

func (w *RiverJobs) AddJob(ctx context.Context, job jobs.Job) error

func (*RiverJobs) AddJobType

func (w *RiverJobs) AddJobType(jobFn jobs.JobFn) error

func (*RiverJobs) AddJobs

func (w *RiverJobs) AddJobs(ctx context.Context, jobs []jobs.Job) error

func (*RiverJobs) AddQueue

func (w *RiverJobs) AddQueue(queue string, count int) error

func (*RiverJobs) RiverClient

func (w *RiverJobs) RiverClient() *river.Client[pgx.Tx]

func (*RiverJobs) Run

func (w *RiverJobs) Run(ctx context.Context) error

func (*RiverJobs) RunJob

func (w *RiverJobs) RunJob(ctx context.Context, job jobs.Job) error

func (*RiverJobs) Stop

func (w *RiverJobs) Stop(ctx context.Context) error

func (*RiverJobs) Use

func (w *RiverJobs) Use(mwf jobs.JobMiddleware)

Jump to

Keyboard shortcuts

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