Documentation ¶
Index ¶
- func AccessLogMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func EnsureHtmxHeadersMiddleware() echo.MiddlewareFunc
- func ErrorHandlerMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func SetCacheControl(next echo.HandlerFunc) echo.HandlerFunc
- func ValidateTargetNamesMiddleware(validTargets map[string]bool) echo.MiddlewareFunc
- func ValidateTriggerNamesMiddleware(validTriggers map[string]bool) echo.MiddlewareFunc
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessLogMiddleware ¶
func AccessLogMiddleware(next echo.HandlerFunc) echo.HandlerFunc
AccessLogMiddleware logs access details
func EnsureHtmxHeadersMiddleware ¶
func EnsureHtmxHeadersMiddleware() echo.MiddlewareFunc
EnsureHtmxHeaders checks if the request contains the HTMX headers
func ErrorHandlerMiddleware ¶
func ErrorHandlerMiddleware(next echo.HandlerFunc) echo.HandlerFunc
ErrorHandlerMiddleware logs the error and client details, then sends an appropriate HTTP response
func SetCacheControl ¶
func SetCacheControl(next echo.HandlerFunc) echo.HandlerFunc
func ValidateTargetNamesMiddleware ¶
ValidateTargetNames checks if the request contains a valid target name
func ValidateTriggerNamesMiddleware ¶
ValidateTriggerNames checks if the request contains a valid trigger name
Types ¶
Click to show internal directories.
Click to hide internal directories.