middleware

package
v0.0.0-...-8577a5a Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: AGPL-3.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 F

type F = func(http.Handler) http.Handler

F represents a middleware function.

func P

func P(h H) F

P wraps the given middleware handler to be called as a prefix to the next handler in chain.

type H

type H = func(w http.ResponseWriter, r *http.Request) bool

H represents a short middleware function signature that returns a boolean. If this boolean is false, then the middleware chain is broken.

Jump to

Keyboard shortcuts

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