middleware

package
v0.0.0-...-58fa5b2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(next web.Handler) web.Handler

Auth simulates a midware for authentication.

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)

func Values

func Values(next web.Handler) web.Handler

Values adds the system values to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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