middleware

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMiddleware

func ApplyMiddleware(logger *observe.Logger, handler http.Handler) http.Handler

ApplyMiddleware wraps a handler with the default middleware stack.

func CORS

func CORS() func(http.Handler) http.Handler

func Logging

func Logging(logger *observe.Logger) func(http.Handler) http.Handler

func Middlewares added in v1.6.0

func Middlewares(logger *observe.Logger) []func(http.Handler) http.Handler

Middlewares returns the default middleware stack in execution order. This applies as: Context -> Logging -> Recovery -> Handler.

func Recovery

func Recovery() func(http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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