mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-31 15:36:37 +08:00
18 lines
655 B
Go
18 lines
655 B
Go
package serverconfigs
|
|
|
|
import "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
|
|
|
|
// 健康检查设置
|
|
type HealthCheckConfig struct {
|
|
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
|
|
Timeout *shared.TimeDuration `yaml:"timeout" json:"timeout"` // 超时时间 TODO
|
|
}
|
|
|
|
// 初始化
|
|
func (this *HealthCheckConfig) Init() error {
|
|
return nil
|
|
}
|