middleware

package
v0.0.0-...-b3f521c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler(next web.Handler) web.Handler

ErrorHandler for catching and responding errors.

func Mongo

func Mongo() web.Middleware

Mongo initializes the master session and wires in the connection middleware.

func RequestLogger

func RequestLogger(next web.Handler) web.Handler

RequestLogger writes some information about the request to the logs in the format: TraceID : (200) GET /foo -> IP ADDR (latency)

Types

This section is empty.

Jump to

Keyboard shortcuts

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