runner

package
v0.0.0-...-ba59bca Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleExecute

func HandleExecute(ctx web.Context) error

func HandleSplit

func HandleSplit(ctx web.Context) error

func Register

func Register(name string, handler Handler)

func RegisterFunc

func RegisterFunc(name string, handler func(job *contract.Job) error)

func Serve

func Serve(ws *web.Server) func(ctx *app.Context) error

Types

type Handler

type Handler interface {
	Handle(job *contract.Job) error
}

type HandlerFunc

type HandlerFunc func(job *contract.Job) error

func (HandlerFunc) Handle

func (f HandlerFunc) Handle(job *contract.Job) error

type ParallelHandler

type ParallelHandler interface {
	Handler
	Split(job *contract.Job) ([]*contract.Batch, error)
}

type PostFilter

type PostFilter func(job *contract.Job, err error)

type PreFilter

type PreFilter func(job *contract.Job) error

Jump to

Keyboard shortcuts

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