Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for adaptCheckToHandler (0.28 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/healthz/healthz.go

    			fmt.Fprint(w, "ok")
    			return
    		}
    
    		individualCheckOutput.WriteTo(w)
    		fmt.Fprintf(w, "%s check passed\n", name)
    	}
    }
    
    // adaptCheckToHandler returns an http.HandlerFunc that serves the provided checks.
    func adaptCheckToHandler(c func(r *http.Request) error) http.HandlerFunc {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		err := c(r)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top