middleware

package
v0.0.0-...-415d151 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTP

func HTTP(handle HandleWithError) httprouter.Handle

HTTP runs HandleWithError and converts it to httprouter.Handle. The conversion is needed because httprouter.Router needs httprouter.Handle in its signature.

Types

type HandleWithError

type HandleWithError func(http.ResponseWriter, *http.Request, httprouter.Params) error

HandleWithError is an httprouter.Handle that returns an error.

Jump to

Keyboard shortcuts

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