feat: Add health checking feature to service registry, which periodically checks service status and deletes unhealthy services

This commit is contained in:
2025-02-11 16:35:48 +01:00
parent 9d4c10b392
commit ffbd653098
6 changed files with 57 additions and 6 deletions

View File

@@ -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)