job_hdl

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(ctx context.Context, ccHandler *ccjh.Handler) *Handler

func (*Handler) Cancel

func (h *Handler) Cancel(id string) error

func (*Handler) Create

func (h *Handler) Create(desc string, tFunc func(context.Context, context.CancelFunc) error) (string, error)

func (*Handler) Get

func (h *Handler) Get(id string) (model.Job, error)

func (*Handler) List

func (h *Handler) List(filter model.JobFilter) []model.Job

func (*Handler) PurgeJobs

func (h *Handler) PurgeJobs(maxAge int64) int

Jump to

Keyboard shortcuts

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