This commit is contained in:
2026-04-11 03:05:07 +02:00
parent 56a4a6ba25
commit ad7d7e20fc
5 changed files with 24 additions and 24 deletions

View File

@@ -17,10 +17,10 @@ type ProbeFunc func(ctx context.Context, cfg ProbeConfig) health.ProbeResult
// ProbeConfig holds all parameters needed to execute a single probe.
type ProbeConfig struct {
Target net.IP // backend address to probe
Port uint16 // destination port (used by TCP and HTTP probers)
ProbeSrc net.IP // source address to bind; nil lets the OS choose
HealthCheckNetns string // network namespace name; sockets are created inside it
Target net.IP // backend address to probe
Port uint16 // destination port (used by TCP and HTTP probers)
ProbeSrc net.IP // source address to bind; nil lets the OS choose
HealthCheckNetns string // network namespace name; sockets are created inside it
Timeout time.Duration
HTTP *config.HTTPParams // non-nil for type http/https
TCP *config.TCPParams // non-nil for type tcp