job

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StateChange occurs when a job's state changes.
	// Handler can inspect the job's State property
	// in order to determine what state the job is at.
	StateChange = "STATE_CHANGE"
	// Read occurs when a Job is read by the client
	// through the API.
	Read = "READ"
)

Variables

This section is empty.

Functions

func NoOpHandlerFunc added in v0.1.8

func NoOpHandlerFunc(ctx context.Context, et EventType, j *tork.Job) error

Types

type EventType added in v0.1.8

type EventType string

type HandlerFunc

type HandlerFunc func(ctx context.Context, et EventType, j *tork.Job) error

func ApplyMiddleware

func ApplyMiddleware(h HandlerFunc, mws []MiddlewareFunc) HandlerFunc

func Redact added in v0.1.8

func Redact(next HandlerFunc) HandlerFunc

type MiddlewareFunc

type MiddlewareFunc func(next HandlerFunc) HandlerFunc

Jump to

Keyboard shortcuts

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