task

package
v0.0.0-...-04ccfb0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaptureTaskContext

type CaptureTaskContext func() *Context

type Context

type Context struct {
	Config     *config.Config
	AppContext *config.AppContext
}

type Param

type Param interface {
	TaskName() string
}

type Queue

type Queue interface {
	Enqueue(taskParam Param)
}

type Registry

type Registry interface {
	Register(name string, task Task)
}

type RestoreTaskContext

type RestoreTaskContext func(context.Context, *Context) context.Context

type Task

type Task interface {
	Run(context context.Context, param Param) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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