frpc: support health check

This commit is contained in:
fatedier
2018-07-16 01:21:29 +08:00
parent cc6486addb
commit 082447f517
2 changed files with 121 additions and 4 deletions

View File

@@ -381,6 +381,8 @@ func (cfg *LocalSvrConf) checkForCli() (err error) {
// Health check info
type HealthCheckConf struct {
HealthCheckType string `json:"health_check_type"` // tcp | http
HealthCheckTimeout int `json:"health_check_timeout"`
HealthCheckMaxFailed int `json:"health_check_max_failed"`
HealthCheckIntervalS int `json:"health_check_interval_s"`
HealthCheckUrl string `json:"health_check_url"`