实现健康检查配置、立即执行健康检查

This commit is contained in:
刘祥超
2020-10-17 21:15:31 +08:00
parent a595de4d5f
commit fd8ee5b926
10 changed files with 341 additions and 11 deletions

View File

@@ -0,0 +1,11 @@
package tasks
import "github.com/TeaOSLab/EdgeAPI/internal/db/models"
type HealthCheckResult struct {
Node *models.Node
NodeAddr string
IsOk bool
Error string
CostMs float64
}