middleware

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

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

Function for creating middleware

func (Function) Middleware

func (fn Function) Middleware(next http.Handler) http.Handler

type Middleware

type Middleware interface {
	Middleware(next http.Handler) http.Handler
}

Interface for implementing middleware

func Compose

func Compose(stack ...Middleware) Middleware

Compose a stack of middleware into a single middleware

type Stack

type Stack []Middleware

Stack of middleware

func (Stack) Middleware

func (stack Stack) Middleware(next http.Handler) http.Handler

Middleware fn

Jump to

Keyboard shortcuts

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