cadvisor/healthz/healthz.go
2014-08-30 00:52:25 -07:00

17 lines
304 B
Go

package healthz
import (
"net/http"
)
func handleHealthz(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("ok"))
}
// Register simple HTTP /healthz handler to return "ok".
func RegisterHandler() error {
http.HandleFunc("/healthz", handleHealthz)
return nil
}