feat: Add health checking feature to service registry, which periodically checks service status and deletes unhealthy services
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user