// Start a Health Check REST Endpoint for checking health
Start a Health Check REST Endpoint for checking health
// Start a Health Check REST Endpoint for checking health
func healthCheck(status chan string) {
	defer func() { status <- "stop" }()
	router := mux.NewRouter()
	router.HandleFunc("/", health)
	router.HandleFunc("/health", health)
	router.HandleFunc("/metrics", metrics)
	log.Fatal(http.ListenAndServe(":8080", router))
}
func healthCheck ( status chan string ) { defer func ( ) { status <- " " } ( ) router := mux . NewRouter ( ) router . HandleFunc ( " " , health ) router . HandleFunc ( " " , health ) router . HandleFunc ( " " , metrics ) log . Fatal ( http . ListenAndServe ( " " , router ) ) }
Start a Health Check REST Endpoint for checking health
Start a Health Check REST Endpoint for checking health