Initial cloud-services repo - gateway service + pkg modules
This commit is contained in:
15
services/gateway/controllers/health_check.go
Normal file
15
services/gateway/controllers/health_check.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"fiskerinc.com/modules/health"
|
||||
"fiskerinc.com/modules/logger"
|
||||
)
|
||||
|
||||
func HealthCheck() {
|
||||
server := health.HealthCheckServer{}
|
||||
err := server.Serve([]health.Config{})
|
||||
|
||||
if err != nil {
|
||||
logger.Error().Err(err).Send()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user