middleware

package
v0.0.0-...-a4b042a Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WebMiddlewareChain = chain.New(
	[]chain.Constructor{
		csrf.Protect([]byte("12345678910111213141151617181920")),
	},
	[]chain.ConstructorFunc{
		LoggerMiddleware,
	},
)

Functions

func JsonMiddleware

func JsonMiddleware(next http.HandlerFunc) http.HandlerFunc

func LoggerMiddleware

func LoggerMiddleware(next http.HandlerFunc) http.HandlerFunc

Types

This section is empty.

Directories

Path Synopsis
Originally that was a package by https://github.com/justinas/alice Cloned here for
Originally that was a package by https://github.com/justinas/alice Cloned here for

Jump to

Keyboard shortcuts

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