middleware

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(inner http.Handler, authn auth.Authenticator) http.Handler

Auth is a middleware to checks HTTP request credentials

func Cors added in v1.5.1

func Cors(inner http.Handler) http.Handler

Cors is a middleware to enabling CORS on HTTP requests

func Logger

func Logger(next http.Handler) http.Handler

Logger is a middleware to log HTTP request

func Tracing

func Tracing(nextRequestID func() string) func(http.Handler) http.Handler

Tracing is a middleware to trace HTTP request

Types

This section is empty.

Jump to

Keyboard shortcuts

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