|
@@ -501,6 +501,11 @@ type Config struct {
|
|
|
LivenessTestMinDownstreamBytes *int
|
|
LivenessTestMinDownstreamBytes *int
|
|
|
LivenessTestMaxDownstreamBytes *int
|
|
LivenessTestMaxDownstreamBytes *int
|
|
|
|
|
|
|
|
|
|
+ // ReplayCandidateCount and other Replay fields are for
|
|
|
|
|
+ // testing purposes.
|
|
|
|
|
+ ReplayCandidateCount *int
|
|
|
|
|
+ ReplayDialParametersTTLSeconds *int
|
|
|
|
|
+
|
|
|
// clientParameters is the active ClientParameters with defaults, config
|
|
// clientParameters is the active ClientParameters with defaults, config
|
|
|
// values, and, optionally, tactics applied.
|
|
// values, and, optionally, tactics applied.
|
|
|
//
|
|
//
|
|
@@ -976,6 +981,14 @@ func (config *Config) makeConfigParameters() map[string]interface{} {
|
|
|
applyParameters[parameters.LivenessTestMaxDownstreamBytes] = *config.LivenessTestMaxDownstreamBytes
|
|
applyParameters[parameters.LivenessTestMaxDownstreamBytes] = *config.LivenessTestMaxDownstreamBytes
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if config.ReplayCandidateCount != nil {
|
|
|
|
|
+ applyParameters[parameters.ReplayCandidateCount] = *config.ReplayCandidateCount
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if config.ReplayDialParametersTTLSeconds != nil {
|
|
|
|
|
+ applyParameters[parameters.ReplayDialParametersTTL] = fmt.Sprintf("%ds", *config.ReplayDialParametersTTLSeconds)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return applyParameters
|
|
return applyParameters
|
|
|
}
|
|
}
|
|
|
|
|
|