Move logger to own package; clean up apiserver to use serve mux.

This commit is contained in:
Daniel Smith
2014-07-15 15:38:56 -07:00
parent c7d31fabbc
commit 90afdb06c1
6 changed files with 133 additions and 44 deletions

View File

@@ -29,3 +29,7 @@ func handleHealthz(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("ok"))
}
func InstallHandler(mux *http.ServeMux) {
mux.HandleFunc("/healthz", handleHealthz)
}