- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for UnlistedHandleFunc (0.4 sec)
-
staging/src/k8s.io/apiserver/pkg/server/routes/profiling.go
func (d Profiling) Install(c *mux.PathRecorderMux) { c.UnlistedHandleFunc("/debug/pprof", redirectTo("/debug/pprof/")) c.UnlistedHandlePrefix("/debug/pprof/", http.HandlerFunc(pprof.Index)) c.UnlistedHandleFunc("/debug/pprof/profile", pprof.Profile) c.UnlistedHandleFunc("/debug/pprof/symbol", pprof.Symbol) c.UnlistedHandleFunc("/debug/pprof/trace", pprof.Trace) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 06 11:35:01 UTC 2018 - 1.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller_debug.go
// debugging dumps a CSV content for three levels of granularity // 1. row per priority-level c.UnlistedHandleFunc("/debug/api_priority_and_fairness/dump_priority_levels", cfgCtlr.dumpPriorityLevels) // 2. row per queue c.UnlistedHandleFunc("/debug/api_priority_and_fairness/dump_queues", cfgCtlr.dumpQueues) // 3. row per request c.UnlistedHandleFunc("/debug/api_priority_and_fairness/dump_requests", cfgCtlr.dumpRequests) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 17:38:43 UTC 2023 - 7.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder_test.go
package mux import ( "net/http" "net/http/httptest" "testing" "github.com/stretchr/testify/assert" ) func TestSecretHandlers(t *testing.T) { c := NewPathRecorderMux("test") c.UnlistedHandleFunc("/secret", func(http.ResponseWriter, *http.Request) {}) c.HandleFunc("/nonswagger", func(http.ResponseWriter, *http.Request) {}) assert.NotContains(t, c.ListedPaths(), "/secret")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 26 16:15:13 UTC 2017 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/routes/flags.go
c.UnlistedHandle("/debug/flags", http.HandlerFunc(f.Index)) c.UnlistedHandlePrefix("/debug/flags/", http.HandlerFunc(f.Index)) url := path.Join("/debug/flags", flag) c.UnlistedHandleFunc(url, handler) f.addFlag(flag) } // Index responds with the `/debug/flags` request. // For example, "/debug/flags/v" serves the "--v" flag. // Index responds to a request for "/debug/flags/" with an HTML page
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 16 11:54:27 UTC 2020 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder.go
defer m.lock.Unlock() m.trackCallers(path) m.pathToHandler[path] = handler m.refreshMuxLocked() } // UnlistedHandleFunc registers the handler function for the given pattern, but doesn't list it. // If a handler already exists for pattern, Handle panics. func (m *PathRecorderMux) UnlistedHandleFunc(path string, handler func(http.ResponseWriter, *http.Request)) { m.UnlistedHandle(path, http.HandlerFunc(handler)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 01:52:15 UTC 2024 - 8.5K bytes - Viewed (0)