Documentation ¶
Index ¶
- Constants
- func GlobalLogging(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func IAkCertFilterFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func MeasureTimeLog(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func MetricsFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func OptionsFilters(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func ResponseCodeLog(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func TLSProxyCertFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
Constants ¶
const ( // HTTPHeaderPhClientCertificate pantahub client certificate HTTPHeaderPhClientCertificate = "Pantahub-TLS-Client-Cert" // HTTPHeaderPhProxyTLSToken pantahub proxy token HTTPHeaderPhProxyTLSToken = "Pantahub-TLS-Proxy-Token" )
Variables ¶
This section is empty.
Functions ¶
func GlobalLogging ¶
func GlobalLogging(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
GlobalLogging Global Filter
func IAkCertFilterFilter ¶
func IAkCertFilterFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
IAkCertFilterFilter process iak and set up in attibute
func MeasureTimeLog ¶
func MeasureTimeLog(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
MeasureTimeLog WebService (post-process) Filter (as a struct that defines a FilterFunction)
func MetricsFilter ¶
func MetricsFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
MetricsFilter measure metrics
func OptionsFilters ¶
func OptionsFilters(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
OptionsFilters Filter Options
func ResponseCodeLog ¶
func ResponseCodeLog(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
ResponseCodeLog WebService (post-process) Filter (as a struct that defines a FilterFunction)
func TLSProxyCertFilter ¶
func TLSProxyCertFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
TLSProxyCertFilter will ensure that calling clients have authenticated with a valid client IDevId certificate and will validate the extensions to it.
If validation succeeds the key attributes will be put into the calling context to allow business logic to adjust behaviour based on what was found.
This filter can operate in mode behind proxy or directly on TLS port. If we are opreating behind a proxy it is mandatory that the proxy authenticates itself to the backend in order to enable the code path that uses the "PhClientCertificate" Http header field to retrieve the client certificate used.
Types ¶
This section is empty.