Files
EdgeCommon/pkg/serverconfigs/health_check_config.go

18 lines
655 B
Go
Raw Normal View History

2020-09-13 19:27:47 +08:00
package serverconfigs
import "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
2020-09-27 15:25:52 +08:00
// 健康检查设置
2020-09-13 19:27:47 +08:00
type HealthCheckConfig struct {
2020-09-27 15:25:52 +08:00
IsOn bool `yaml:"isOn" json:"isOn"` // 是否开启 TODO
URL string `yaml:"url" json:"url"` // TODO
Interval int `yaml:"interval" json:"interval"` // TODO
StatusCodes []int `yaml:"statusCodes" json:"statusCodes"` // TODO
2020-09-16 09:09:31 +08:00
Timeout *shared.TimeDuration `yaml:"timeout" json:"timeout"` // 超时时间 TODO
2020-09-13 19:27:47 +08:00
}
2020-09-27 15:25:52 +08:00
// 初始化
func (this *HealthCheckConfig) Init() error {
return nil
}