Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for HandleFunc (0.17 sec)

  1. pkg/ctrlz/ctrlz.go

    		registerTopic(router, mainLayout, t)
    	}
    
    	if o.EnablePprof && o.Address == "localhost" {
    		router.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
    		router.HandleFunc("/debug/pprof/profile", pprof.Profile)
    		router.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
    		router.HandleFunc("/debug/pprof/trace", pprof.Trace)
    		router.PathPrefix("/debug/pprof/").HandlerFunc(pprof.Index)
    	}
    	registerHome(router, mainLayout)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 21:22:53 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. 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)
  3. pilot/pkg/bootstrap/webhook.go

    		ErrorLog:  log.New(&httpServerErrorLogWriter{}, "", 0),
    		Handler:   s.httpsMux,
    		TLSConfig: tlsConfig,
    	}
    
    	// register istiodReadyHandler on the httpsMux so that readiness can also be checked remotely
    	s.httpsMux.HandleFunc("/ready", s.istiodReadyHandler)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 17:37:53 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. cni/pkg/log/uds.go

    	Msg       string         `json:"msg"`
    	Arbitrary map[string]any `json:"-"`
    }
    
    func NewUDSLogger(level istiolog.Level) *UDSLogger {
    	l := &UDSLogger{}
    	mux := http.NewServeMux()
    	mux.HandleFunc(constants.UDSLogPath, l.handleLog)
    	loggingServer := &http.Server{
    		Handler: mux,
    	}
    	l.loggingServer = loggingServer
    	pluginLog.SetOutputLevel(level)
    	return l
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/cni-watcher.go

    		dataplane: dataplane,
    		cniListenServer: &http.Server{
    			Handler: mux,
    		},
    		cniListenServerCancel: cancel,
    		sockAddress:           pluginSocket,
    		ctx:                   ctx,
    	}
    
    	mux.HandleFunc(pconstants.CNIAddEventPath, s.handleAddEvent)
    	return s
    }
    
    func (s *CniPluginServer) Stop() {
    	s.cniListenServerCancel()
    }
    
    // Start starts up a UDS server which receives events from the CNI chain plugin.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. src/net/http/server.go

    	} else {
    		mux.register(pattern, handler)
    	}
    }
    
    // HandleFunc registers the handler function for the given pattern.
    // If the given pattern conflicts, with one that is already registered, HandleFunc
    // panics.
    func (mux *ServeMux) HandleFunc(pattern string, handler func(ResponseWriter, *Request)) {
    	if use121 {
    		mux.mux121.handleFunc(pattern, handler)
    	} else {
    		mux.register(pattern, HandlerFunc(handler))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  7. src/net/http/serve_test.go

    	writeBackQuery := func(w ResponseWriter, r *Request) {
    		fmt.Fprintf(w, "%s", r.URL.RawQuery)
    	}
    
    	mux := NewServeMux()
    	mux.HandleFunc("/testOne", writeBackQuery)
    	mux.HandleFunc("/testTwo/", writeBackQuery)
    	mux.HandleFunc("/testThree", writeBackQuery)
    	mux.HandleFunc("/testThree/", func(w ResponseWriter, r *Request) {
    		fmt.Fprintf(w, "%s:bar", r.URL.RawQuery)
    	})
    
    	ts := newClientServerTest(t, mode, mux).ts
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  8. src/net/http/transport_test.go

    }
    func testIssue4191_InfiniteGetToPutTimeout(t *testing.T, mode testMode) {
    	const debug = false
    	mux := NewServeMux()
    	mux.HandleFunc("/get", func(w ResponseWriter, r *Request) {
    		io.Copy(w, neverEnding('a'))
    	})
    	mux.HandleFunc("/put", func(w ResponseWriter, r *Request) {
    		defer r.Body.Close()
    		io.Copy(io.Discard, r.Body)
    	})
    	ts := newClientServerTest(t, mode, mux).ts
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  9. pilot/pkg/bootstrap/server.go

    	}
    
    	// Monitoring Server.
    	if err := s.initMonitor(args.ServerOptions.MonitoringAddr); err != nil {
    		return fmt.Errorf("error initializing monitor: %v", err)
    	}
    
    	// Readiness Handler.
    	s.httpMux.HandleFunc("/ready", s.istiodReadyHandler)
    
    	return nil
    }
    
    // initDiscoveryService initializes discovery server on plain text port.
    func (s *Server) initDiscoveryService() {
    	log.Infof("starting discovery service")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
Back to top