package
2.19.0+incompatible
Repository: https://github.com/onsdigital/dp-api-router.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AuditHandler is a middleware handler that keeps track of calls for auditing purposes, before and after proxying calling the downstream service.
BetaAPIHandler will return a 404 where enforceBetaRoutes is true and the request is aimed at a non beta domain.
GenerateAuditEvent creates an audit event with the values from request and request context, if present.
PathFilter is a middleware that executes allowed endpoints, skipping any further middleware handler.
No description provided by the author
# Variables
HealthcheckFilter is a middleware that executed the health endpoint directly (handler provided as a parameter), skipping any further middleware handlers.
Now is a time.Now wrapper specifically for testing purposes, and should not me unlambda'd - despite what golangci-lint says.
VersionedHealthCheckFilter is a middleware that executed the health endpoint directly (handler and version provided as a parameter), skipping any further middleware handlers.
# Interfaces
No description provided by the author