negronistatsd

package module
v0.0.0-...-337b236 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2015 License: MIT Imports: 5 Imported by: 0

README

Statsd Middleware for Negroni

Small middleware that reports http status codes, and request timings to statds. Uses http://github.com/cactus/go-statsd-client/statsd

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	StatsdClient statsd.Statter
}

Middleware is a middleware handler that logs the request as it goes in and the response as it goes out.

func NewMiddleware

func NewMiddleware(statsd statsd.Statter) *Middleware

NewMiddleware returns a new *Middleware, yay!

func (*Middleware) ServeHTTP

func (s *Middleware) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

Jump to

Keyboard shortcuts

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