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

@@ -4,9 +4,9 @@ import "gorm.io/gorm"
type Service struct {
gorm.Model
Name string
Name string `gorm:"unique"`
NodeType string
Address string
Port int
Port string
Status string
}