Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestID ¶
func RequestID(header string) echo.MiddlewareFunc
RequestID is a middleware that generates a unique request ID for each HTTP request.
func RequestLogger ¶
RequestLogger is a middleware that logs each request using the provided zap.Logger. It logs the URI, status, error (if any), latency, remote IP, host, and method of the request.
func RequestTimeout ¶
func RequestTimeout(timeoutSeconds uint16) echo.MiddlewareFunc
RequestTimeout is a middleware that returns a 503 Service Unavailable error if the request takes longer than the specified duration. It uses the provided duration to set the timeout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.