// RunHealthCheckServer : will start the health check server
RunHealthCheckServer : will start the health check server
// RunHealthCheckServer : will start the health check server
func RunHealthCheckServer(config *config.Config, db *gorm.DB) error {
	postgresql := postgreshealth.NewPostgresChecker(db)
	handler := health.NewHandler()
	postgresql.Check()
	handler.AddChecker("Postgres", postgresql)
	http.Handle("/health/", handler)
	return http.ListenAndServe(config.HealthCheck.Host+":"+config.HealthCheck.Port, nil)
}
func RunHealthCheckServer ( config * config . Config , db * gorm . DB ) error { postgresql := postgreshealth . NewPostgresChecker ( db ) handler := health . NewHandler ( ) postgresql . Check ( ) handler . AddChecker ( " " , postgresql ) http . Handle ( " " , handler ) return http . ListenAndServe ( config . HealthCheck . Host + " " + config . HealthCheck . Port , nil ) }
RunHealthCheckServer : will start the health check server
RunHealthCheckServer : will start the health check server
//postgres health check