package
0.0.0-20170403140351-21d4febd4bca
Repository: https://github.com/sirbu/golang-common.git
Documentation: pkg.go.dev
# Functions
ApplicationJSON sets the content-type headr to JSON.
Middleware that catches panics, and:
- logs them
- optionally reports them to sentry - pass in "" if you don't want this
- sends a 500 response
You can also use ThrowError() to raise an error that this middleware will catch, for example
if you want an error to be reported to sentry
*/.
CORS is a middleware to handle CORS requests.
GzipHandler is used to compress data.
No description provided by the author
No description provided by the author
XRequestID is a goji middleware to track requestID.