Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for HandleFunc (0.43 sec)

  1. src/cmd/trace/main.go

    	mux.HandleFunc("/regionblock", traceviewer.SVGProfileHandlerFunc(pprofByRegion(computePprofBlock(), parsed)))
    	mux.HandleFunc("/regionsyscall", traceviewer.SVGProfileHandlerFunc(pprofByRegion(computePprofSyscall(), parsed)))
    	mux.HandleFunc("/regionsched", traceviewer.SVGProfileHandlerFunc(pprofByRegion(computePprofSched(), parsed)))
    
    	// Region endpoints.
    	mux.HandleFunc("/userregions", UserRegionsHandlerFunc(parsed))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. pilot/cmd/pilot-agent/status/server.go

    	if s.enableProfiling {
    		// Add the handler for pprof.
    		mux.HandleFunc("/debug/pprof/", s.handlePprofIndex)
    		mux.HandleFunc("/debug/pprof/cmdline", s.handlePprofCmdline)
    		mux.HandleFunc("/debug/pprof/profile", s.handlePprofProfile)
    		mux.HandleFunc("/debug/pprof/symbol", s.handlePprofSymbol)
    		mux.HandleFunc("/debug/pprof/trace", s.handlePprofTrace)
    	}
    	mux.HandleFunc("/debug/ndsz", s.handleNdsz)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

            succeeded(adjustBranch(ifop, ifop.then_function(), rewriter)) ||
            succeeded(adjustBranch(ifop, ifop.else_function(), rewriter));
        return LogicalResult::success(success);
      }
    };
    
    class HandleFunc : public OpRewritePattern<func::FuncOp> {
     public:
      using OpRewritePattern::OpRewritePattern;
    
      LogicalResult matchAndRewrite(func::FuncOp f,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/config_test.go

    	delegateServer, err := delegateConfig.Complete(sharedInformers).New("test", NewEmptyDelegate())
    	if err != nil {
    		t.Fatal(err)
    	}
    	delegateServer.Handler.NonGoRestfulMux.HandleFunc("/foo", func(w http.ResponseWriter, _ *http.Request) {
    		w.WriteHeader(http.StatusForbidden)
    	})
    
    	delegatePostStartHookChan := make(chan struct{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. pilot/pkg/xds/debug.go

    	s.debugHandlers[path] = help
    	// Add handler without auth. This mux is never exposed on an HTTP server and only used internally
    	if internalMux != nil {
    		internalMux.HandleFunc(path, handler)
    	}
    	// Add handler with auth; this is expose on an HTTP server
    	mux.HandleFunc(path, s.allowAuthenticatedOrLocalhost(http.HandlerFunc(handler)))
    }
    
    func (s *DiscoveryServer) allowAuthenticatedOrLocalhost(next http.Handler) http.HandlerFunc {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  6. pkg/istio-agent/xds_proxy.go

    	if err != nil {
    		log.Errorf("failed to start Tap XDS Proxy: %v", err)
    	}
    
    	httpMux := http.NewServeMux()
    	handler := p.makeTapHandler()
    	httpMux.HandleFunc("/debug/", handler)
    	httpMux.HandleFunc("/debug", handler) // For 1.10 Istiod which uses istio.io/debug
    
    	mixedHandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  7. cmd/kube-scheduler/app/server.go

    	configz.InstallHandler(pathRecorderMux)
    	pathRecorderMux.Handle("/metrics", legacyregistry.HandlerWithReset())
    
    	resourceMetricsHandler := resources.Handler(informers.Core().V1().Pods().Lister())
    	pathRecorderMux.HandleFunc("/metrics/resources", func(w http.ResponseWriter, req *http.Request) {
    		if !isLeader() {
    			return
    		}
    		resourceMetricsHandler.ServeHTTP(w, req)
    	})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. pkg/kube/inject/webhook.go

    	if err != nil {
    		return nil, err
    	}
    	if err := wh.updateConfig(sidecarConfig, valuesConfig); err != nil {
    		log.Errorf("failed to process webhook config: %v", err)
    	}
    
    	p.Mux.HandleFunc("/inject", wh.serveInject)
    	p.Mux.HandleFunc("/inject/", wh.serveInject)
    
    	p.Env.Watcher.AddMeshHandler(func() {
    		wh.mu.Lock()
    		wh.meshConfig = p.Env.Mesh()
    		wh.mu.Unlock()
    	})
    
    	return wh, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  9. src/net/http/request_test.go

    			},
    		},
    		{
    			"/names/{name}/{other...}",
    			"/names/n/*",
    			map[string]string{
    				"name":  "n",
    				"other": "*",
    			},
    		},
    	} {
    		mux := NewServeMux()
    		mux.HandleFunc(test.pattern, func(w ResponseWriter, r *Request) {
    			for name, want := range test.want {
    				got := r.PathValue(name)
    				if got != want {
    					t.Errorf("%q, %q: got %q, want %q", test.pattern, name, got, want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  10. cmd/kube-proxy/app/server.go

    	if len(bindAddress) == 0 {
    		return
    	}
    
    	proxyMux := mux.NewPathRecorderMux("kube-proxy")
    	healthz.InstallHandler(proxyMux)
    	slis.SLIMetricsWithReset{}.Install(proxyMux)
    
    	proxyMux.HandleFunc("/proxyMode", func(w http.ResponseWriter, r *http.Request) {
    		w.Header().Set("Content-Type", "text/plain; charset=utf-8")
    		w.Header().Set("X-Content-Type-Options", "nosniff")
    		fmt.Fprintf(w, "%s", proxyMode)
    	})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top