Documentation ¶
Overview ¶
Package middleware contains saddle-level related middleware which utilizes the Echo framework.
Index ¶
Constants ¶
View Source
const ( // CTXRequest contains the key in which the request payload is attached and referenced to the request context. CTXRequest = "ctxRequest" // CTXRequestID contains the key in which the request id is attached and referenced to the request context. CTXRequestID = "ctxRequestID" )
Variables ¶
This section is empty.
Functions ¶
func RequestID ¶
func RequestID() fiber.Handler
RequestID handles any referenced request ID attached to an incoming request; will construct and attach a new ID to the incoming request if it does not already exist.
func RequestLog ¶
RequestLog creates a middleware that logs request start and end times, along with latency.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.