From 5e245b082e6be8c8899c34410f488e8ab001aaba Mon Sep 17 00:00:00 2001 From: meanwhile131 <51206659+meanwhile131@users.noreply.github.com> Date: Sun, 30 Aug 2026 16:19:54 +0400 Subject: [PATCH] Routing: Export HealthCheckSettings (#6680) --- infra/conf/observatory.go | 2 +- infra/conf/router_strategy.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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"