task

package
v0.0.0-...-e2e6556 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nullable

type Nullable struct{}

type Task

type Task[I any, O any] interface {
	// Run will be called by workers (usually)
	// it will receive context, a input (usually output from previous task)
	// should always return a O and error
	Run(context.Context, I, map[string]interface{}, string) (O, error)
}

Task performs a simple action. Usually only one action.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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