# README
middleware-server
Lightweight server module, handling http middlewares.
Docs
http://godoc.org/github.com/giantswarm/middleware-server
Install
$ go get github.com/giantswarm/middleware-server
Import
import "github.com/giantswarm/middleware-server"
Usage
See the examples
make build-examples
Responders
http://godoc.org/github.com/giantswarm/middleware-server#Response
Access Logging
There is a access logging implemented by default when setting a logger.
# format: date time file:line: [level] METHOD path code bytes milliseconds
2014/05/28 12:51:22 logaccess.go:56: [INFO] GET /v1/hello-world 200 11 0
# Functions
No description provided by the author
ExtendedAccessReporter createsan access logger that logs everything that DefaultAccessReporter does with the User-Agent added to that.
No description provided by the author
NewHealthcheckMiddleware provides a middleware that responds JSON formatted information about a service.
No description provided by the author
NewLogAccessHandler executes the next handler and logs the requests statistics afterwards to the logger.
NewSimpleLogger creates a new logger with a default backend logging to `os.Stderr`.
No description provided by the author
NewWelcomeMiddleware provides a middleware that responds human readable information about a service.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
Context is a map getting through all middlewares.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
Middleware is a http handler method.