middleware

package
v0.0.0-...-8a36715 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS(a *web.App, origin string, methods string) web.Middleware

CORS providing support for Cross-Origin Resource Sharing. https://metajack.im/2010/01/19/crossdomain-ajax-for-xmpp-http-binding-made-easy/

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