diff --git a/infra/conf/observatory.go b/infra/conf/observatory.go index 62d6aabad..d33a7b3d5 100644 --- a/infra/conf/observatory.go +++ b/infra/conf/observatory.go @@ -23,7 +23,7 @@ func (o *ObservatoryConfig) Build() (proto.Message, error) { type BurstObservatoryConfig struct { SubjectSelector []string `json:"subjectSelector"` // health check settings - HealthCheck *healthCheckSettings `json:"pingConfig,omitempty"` + HealthCheck *HealthCheckSettings `json:"pingConfig,omitempty"` } func (b BurstObservatoryConfig) Build() (proto.Message, error) { diff --git a/infra/conf/router_strategy.go b/infra/conf/router_strategy.go index 6c426c510..f82a09bdb 100644 --- a/infra/conf/router_strategy.go +++ b/infra/conf/router_strategy.go @@ -43,8 +43,8 @@ type strategyLeastLoadConfig struct { Tolerance float64 `json:"tolerance,omitempty"` } -// healthCheckSettings holds settings for health Checker -type healthCheckSettings struct { +// HealthCheckSettings holds settings for health Checker +type HealthCheckSettings struct { Destination string `json:"destination"` Connectivity string `json:"connectivity"` Interval duration.Duration `json:"interval"` @@ -53,7 +53,7 @@ type healthCheckSettings struct { HttpMethod string `json:"httpMethod"` } -func (h healthCheckSettings) Build() (proto.Message, error) { +func (h HealthCheckSettings) Build() (proto.Message, error) { var httpMethod string if h.HttpMethod == "" { httpMethod = "HEAD"