Help us shape the future of Go! Take the 2026 Go Developer Survey

execution

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextKeyInsideTestWorker

type ContextKeyInsideTestWorker struct{}

ContextKeyInsideTestWorker is an internal context key that indicates whether the worker is running inside a [rivertest.Worker].

type Func

type Func func(ctx context.Context) error

func MiddlewareChain

func MiddlewareChain(globalMiddleware []rivertype.Middleware, workerMiddleware []rivertype.WorkerMiddleware, doInner Func, jobRow *rivertype.JobRow) Func

MiddlewareChain chains together the given middleware functions, returning a single function that applies them all in reverse order.

Jump to

Keyboard shortcuts

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