chain

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Final

type Final func(http.HandlerFunc) http.Handler

Final is a middleware which wraps the final http handler func to be executed.

func CreateFinal

func CreateFinal(middlewares ...Intermediate) Final

CreateFinal composes a bigger HTTP application from a series of middlewares. The middlewares are chained in ascending order: Create(A, B, C) will apply A(B(C)).

type Intermediate

type Intermediate func(http.Handler) http.Handler

Intermediate is a middleware which wraps another middleware.

type IntermediateFunc

type IntermediateFunc func(http.HandlerFunc) http.HandlerFunc

IntermediateFunc is a middleware func which wraps another middleware func.

Jump to

Keyboard shortcuts

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