middleware

package
v3.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

Func implements the Middleware interface on a function of type func(http.Handler, http.ResponseWriter, *http.Request).

func (Func) Next

func (f Func) Next(next http.Handler) http.HandlerFunc

type Middleware

type Middleware interface {
	Next(http.Handler) http.HandlerFunc
}

Middleware allows to chain multiple HTTP handlers together.

func Chain

func Chain(middlewares ...Middleware) Middleware

Chain chains one or many middlewares into a single middleware.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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