func HealthHandler(site core.SiteAPI) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		if !site.Healthy() {
			w.WriteHeader(http.StatusInternalServerError)
			return
		}

		w.WriteHeader(http.StatusOK)
		fmt.Fprintln(w, "OK")
	}
}
// HealthHandler returns current charge mode
HealthHandler returns current charge mode
// HealthHandler returns current charge mode
func HealthHandler(site core.SiteAPI) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		if !site.Healthy() {
			w.WriteHeader(http.StatusInternalServerError)
			return
		}
		w.WriteHeader(http.StatusOK)
		fmt.Fprintln(w, "OK")
	}
}
func HealthHandler ( site core . SiteAPI ) http . HandlerFunc { return func ( w http . ResponseWriter , r * http . Request ) { if ! site . Healthy ( ) { w . WriteHeader ( http . StatusInternalServerError ) return } w . WriteHeader ( http . StatusOK ) fmt . Fprintln ( w , " " ) } }
HealthHandler returns current charge mode
HealthHandler returns current charge mode