middlewares

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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