MCPcopy
hub / github.com/ory/keto / ExcludePaths

Method ExcludePaths

oryx/reqlog/middleware.go:96–103  ·  view source on GitHub ↗

ExcludePaths adds new URL paths to be ignored during logging. The URL u is parsed, hence the returned error

(paths ...string)

Source from the content-addressed store, hash-verified

94
95// ExcludePaths adds new URL paths to be ignored during logging. The URL u is parsed, hence the returned error
96func (m *Middleware) ExcludePaths(paths ...string) *Middleware {
97 for _, path := range paths {
98 m.Lock()
99 m.silencePaths[path] = true
100 m.Unlock()
101 }
102 return m
103}
104
105func (m *Middleware) Wrap(handler http.Handler) http.Handler {
106 return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {

Callers 4

ReadRouterMethod · 0.80
WriteRouterMethod · 0.80
OPLSyntaxRouterMethod · 0.80
metricsRouterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected