jobqueue

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobEntry

type JobEntry interface {
	Run()
	Name() string
}

type JobQueue

type JobQueue struct{}

func Default

func Default() JobQueue

func (JobQueue) Every

func (jobQueue JobQueue) Every(duration time.Duration, job JobEntry)

func (JobQueue) In

func (jobQueue JobQueue) In(duration time.Duration, job JobEntry)

func (JobQueue) Now

func (jobQueue JobQueue) Now(job JobEntry)

func (JobQueue) Remove

func (jobQueue JobQueue) Remove(id cron.EntryID)

func (JobQueue) Schedule

func (jobQueue JobQueue) Schedule(spec string, job JobEntry) error

func (JobQueue) Start

func (jobQueue JobQueue) Start(poolSize int, concurrency int)

func (JobQueue) StatusJSON

func (jobqueue JobQueue) StatusJSON() map[string]interface{}

func (JobQueue) Stop

func (jobQueue JobQueue) Stop()

Directories

Path Synopsis
A job runner for executing scheduled or ad-hoc tasks asynchronously from HTTP requests.
A job runner for executing scheduled or ad-hoc tasks asynchronously from HTTP requests.

Jump to

Keyboard shortcuts

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