pluginconfig

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombinedMiddleware

func CombinedMiddleware(middleware []rivertype.Middleware, jobInsertMiddleware []rivertype.JobInsertMiddleware, workerMiddleware []rivertype.WorkerMiddleware) []rivertype.Middleware

CombinedMiddleware combines middleware from the current and legacy configuration fields into one list. Explicit middleware is preserved first, followed by legacy job insert and worker middleware.

The reason this exists is that River originally had a seprate configuration field for each type of middleware (JobInsertMiddleware, WorkerMiddleware) before it was unified to a combined Middleware field so that a new one wouldn't be needed every time a new type of middleware was added. Middleware then became Plugins. The JobInsertMiddleware and WorkerMiddleware fields have been deprecated for quite some time and we should consider just removing them to simplify this set up.

Types

This section is empty.

Jump to

Keyboard shortcuts

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