feat: Add health checking feature to service registry, which periodically checks service status and deletes unhealthy services
This commit is contained in:
@@ -17,6 +17,9 @@ func Start() {
|
||||
// Migrate the schema
|
||||
db.AutoMigrate(&models.Service{})
|
||||
|
||||
// Health Checking
|
||||
go checkHealth()
|
||||
|
||||
// Init API Backend
|
||||
router := gin.Default()
|
||||
router = registerRoutes(router)
|
||||
|
Reference in New Issue
Block a user