jobs

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJob

func AddJob(name string, key string, run func(...any), params ...any)

Types

type Job

type Job struct {
	ID   xid.ID
	Name string
	// contains filtered or unexported fields
}

Job implementations.

func (*Job) String

func (j *Job) String() string

type Runner

type Runner struct {
	*sync.RWMutex
	// contains filtered or unexported fields
}

func NewJobRunner

func NewJobRunner() *Runner

func (*Runner) AddJob

func (m *Runner) AddJob(name string, key string, run func(...any), params ...any)

Jump to

Keyboard shortcuts

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