Discover Packages
github.com/ONSdigital/dp-api-clients-go/v2
middleware
package
Version:
v2.96.7
Opens a new window with list of versions in this module.
Published: Mar 2, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
HealthcheckFilter creates a map for healthcheck endpoints whitelisting, to be provided to the Whitelist generic function
Whitelist creates a middleware that executes whitelisted endpoints
The provided whitelist is keyed by path, and contains the handler to use and the methods for which the whitelist applies
Allowed provides a list of methods for which the handler should be executed
Source Files
¶
Click to show internal directories.
Click to hide internal directories.