jobs

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() map[string]*Job

List returns a map of registered jobs.

func Register

func Register(name, spec string, fn func(context.Context) func())

Register registers a job.

Types

type Job

type Job struct {
	ID   int
	Spec string
	Func func(context.Context) func()
}

Job is a job that can be registered with the scheduler.

Jump to

Keyboard shortcuts

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