- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for HandlerFunc (0.09 sec)
-
cmd/admin-router.go
Registered: 2025-05-25 19:28 - Last Modified: 2025-04-16 07:34 - 26.7K bytes - Viewed (0) -
cmd/healthcheck-router.go
healthRouter.Methods(http.MethodHead).Path(healthCheckClusterPath).HandlerFunc(httpTraceAll(ClusterCheckHandler)) healthRouter.Methods(http.MethodGet).Path(healthCheckClusterReadPath).HandlerFunc(httpTraceAll(ClusterReadCheckHandler)) healthRouter.Methods(http.MethodHead).Path(healthCheckClusterReadPath).HandlerFunc(httpTraceAll(ClusterReadCheckHandler))
Registered: 2025-05-25 19:28 - Last Modified: 2023-01-23 11:12 - 2.3K bytes - Viewed (0) -
cmd/api-router.go
// high memory usage! func s3APIMiddleware(f http.HandlerFunc, flags ...s3HFlag) http.HandlerFunc { // Collect all flags with bitwise-OR and assign operator var handlerFlags s3HFlag for _, flag := range flags { handlerFlags |= flag } // Get name of the handler using reflection. handlerName := getHandlerName(f, "objectAPIHandlers") var handler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) {
Registered: 2025-05-25 19:28 - Last Modified: 2025-05-07 15:37 - 23.3K bytes - Viewed (0) -
cmd/kms-router.go
kmsRouter.Methods(http.MethodGet).Path(version + "/status").HandlerFunc(gz(httpTraceAll(kmsAPI.KMSStatusHandler))) kmsRouter.Methods(http.MethodGet).Path(version + "/metrics").HandlerFunc(gz(httpTraceAll(kmsAPI.KMSMetricsHandler))) kmsRouter.Methods(http.MethodGet).Path(version + "/apis").HandlerFunc(gz(httpTraceAll(kmsAPI.KMSAPIsHandler))) kmsRouter.Methods(http.MethodGet).Path(version + "/version").HandlerFunc(gz(httpTraceAll(kmsAPI.KMSVersionHandler)))
Registered: 2025-05-25 19:28 - Last Modified: 2024-05-07 23:55 - 2.7K bytes - Viewed (0) -
cni/pkg/plugin/cnieventclient_test.go
} ) func TestPushCNIAddEventSucceed(t *testing.T) { // Fake out a test HTTP server and use that instead of a real HTTP server over gRPC to validate req/resp flows testServer := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { res.WriteHeader(http.StatusOK) res.Write([]byte("server happy")) })) defer func() { testServer.Close() }() cniC := fakeCNIEventClient(testServer.URL)
Registered: 2025-05-28 22:53 - Last Modified: 2024-07-02 18:48 - 4.2K bytes - Viewed (0) -
internal/dsync/dsync-server_test.go
subrouter.Methods(http.MethodPost).Path("/v1/health").HandlerFunc(lockServer.HealthHandler) subrouter.Methods(http.MethodPost).Path("/v1/refresh").HandlerFunc(lockServer.RefreshHandler) subrouter.Methods(http.MethodPost).Path("/v1/lock").HandlerFunc(lockServer.LockHandler) subrouter.Methods(http.MethodPost).Path("/v1/rlock").HandlerFunc(lockServer.RLockHandler)
Registered: 2025-05-25 19:28 - Last Modified: 2023-01-23 16:46 - 8.3K bytes - Viewed (0) -
cmd/http-tracer.go
tc.ResponseRecorder.LogAllBody = logBody tc.ResponseRecorder.LogErrBody = true f.ServeHTTP(w, r) } } func httpTraceAll(f http.HandlerFunc) http.HandlerFunc { return httpTrace(f, true) } func httpTraceHdrs(f http.HandlerFunc) http.HandlerFunc { return httpTrace(f, false)
Registered: 2025-05-25 19:28 - Last Modified: 2024-09-24 17:13 - 6K bytes - Viewed (0) -
cmd/storage-rest-server.go
Registered: 2025-05-25 19:28 - Last Modified: 2025-04-25 05:41 - 45.7K bytes - Viewed (0) -
cmd/test-utils_test.go
Registered: 2025-05-25 19:28 - Last Modified: 2025-04-09 14:28 - 77K bytes - Viewed (0) -
cmd/peer-rest-server.go
func registerPeerRESTHandlers(router *mux.Router, gm *grid.Manager) { h := func(f http.HandlerFunc) http.HandlerFunc { return collectInternodeStats(httpTraceHdrs(f)) } server := &peerRESTServer{} subrouter := router.PathPrefix(peerRESTPrefix).Subrouter() subrouter.Methods(http.MethodPost).Path(peerRESTVersionPrefix + peerRESTMethodHealth).HandlerFunc(h(server.HealthHandler))
Registered: 2025-05-25 19:28 - Last Modified: 2025-03-30 00:56 - 53.4K bytes - Viewed (0)