Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptMediaTypeJSON ¶ added in v1.11.0
func AcceptMediaTypeJSON() negroni.HandlerFunc
AcceptMediaTypeJSON is a middleware to check content-type and accept value in HTTP header is application/json
func LogrusLog ¶ added in v1.5.0
func LogrusLog(name, reqID string) negroni.HandlerFunc
LogrusLog middleware function for log HTTP request. combine with RequestID middleware first to add request id in log
func NewRelicHandler ¶
func NewRelicHandler(app newrelic.Application) negroni.HandlerFunc
NewRelicHandler use new relic handler in middleware
func NewRelicInstrumentation ¶
func NewRelicInstrumentation(reqID string) negroni.HandlerFunc
NewRelicInstrumentation used for add request id to new relic attribute
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.