middlewares

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Identity = Func(func(next http.Handler) http.Handler {
	return next
})

Identity is a middleware that does nothing.

Functions

func ResponseError

func ResponseError(w http.ResponseWriter, code int, err *openapi.Error)

Types

type Func

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

func (Func) Handler

func (fn Func) Handler(next http.Handler) http.Handler

type Middleware

func Chain added in v0.6.0

func Chain(ms ...Middleware) Middleware

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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