Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignRequestID ¶
func AssignRequestID(next echo.HandlerFunc) echo.HandlerFunc
AssignRequestID is a middleware to set a request_id to response (as a header) and to request (in the underlying context). If the value is not found in X-Request-ID header from request the identifier will be generated. The request_id will be used by http clients in external requests
func NewRelicMiddleware ¶
func NewRelicMiddleware(newrelicApp newrelic.Application) echo.MiddlewareFunc
NewRelicMiddleware is a middleware to send request info to New Relic.
func RequestLogger ¶
func RequestLogger(next echo.HandlerFunc) echo.HandlerFunc
RequestLogger is a middleware to log the request data
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.