middleware

package
v0.0.0-...-3d0596a Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boundary

func Boundary(next http.Handler) http.Handler

Boundary log start and end of request and store metrics of request

Require tracing.WithSpan

func JSONOnly

func JSONOnly(next http.Handler) http.Handler

JSONOnly set response content type to application/json and if request method POST, PUT or PATCH check request content type and return error if it not json

Types

This section is empty.

Jump to

Keyboard shortcuts

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