job

package
v0.1.73 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 5 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 Webhook added in v0.1.20

func Webhook(next HandlerFunc) HandlerFunc

type MiddlewareFunc

type MiddlewareFunc func(next HandlerFunc) HandlerFunc

func Redact added in v0.1.8

func Redact(redacter *redact.Redacter) MiddlewareFunc

Jump to

Keyboard shortcuts

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