plugins

package
v0.0.0-...-7143a4b Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildChain

func BuildChain(pc config.PluginsConfig, base http.Handler) (http.Handler, error)

BuildChain builds the middleware chain from configuration and applies it to base. Order: plugins are applied in the order listed; the first plugin wraps the entire chain.

func List

func List() []string

List returns the names of available built-in plugins

func RegisterBuiltin

func RegisterBuiltin(name string, f factory)

RegisterBuiltin registers a built-in plugin factory

Types

type Middleware

type Middleware func(next http.Handler) http.Handler

Middleware represents an HTTP middleware that wraps a handler The returned handler should call the next handler to continue the chain.

Jump to

Keyboard shortcuts

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