job

package
v0.1.101 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 6 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"
	// Progress occurs when a job's progress changes.
	Progress = "PROGRESS"
	// 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