MCPcopy
hub / github.com/oauth2-proxy/oauth2-proxy / SetGetClientFunc

Function SetGetClientFunc

pkg/logger/logger.go:461–463  ·  view source on GitHub ↗

SetGetClientFunc sets the function which determines the apparent IP address set by a reverse proxy for the standard logger.

(f GetClientFunc)

Source from the content-addressed store, hash-verified

459// SetGetClientFunc sets the function which determines the apparent IP address
460// set by a reverse proxy for the standard logger.
461func SetGetClientFunc(f GetClientFunc) {
462 std.SetGetClientFunc(f)
463}
464
465// SetExcludePaths sets the path to exclude from logging, eg: health checks
466func SetExcludePaths(s []string) {

Callers 1

ValidateFunction · 0.92

Calls 1

SetGetClientFuncMethod · 0.80

Tested by

no test coverage detected