Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidMaxIncreaseDelta = errors.New("invalid max_increase_delta")
ErrInvalidMaxIncreaseDelta is returned for a config with an invalid MaxIncreaseDelta.
View Source
var ErrInvalidModifyResponseProbability = errors.New("invalid modify_response_probability")
ErrInvalidModifyResponseProbability is returned for a config with an invalid ModifyResponseProbability.
Functions ¶
Types ¶
type Config ¶
type Config struct { // ModifyResponseProbability is the probability by which a response will // be modified. ModifyResponseProbability float32 `yaml:"modify_response_probability"` // MaxIncreaseDelta is the amount of seconds that will be added at most. MaxIncreaseDelta int `yaml:"max_increase_delta"` // ModifyMinInterval specifies whether min_interval should be increased // as well. ModifyMinInterval bool `yaml:"modify_min_interval"` }
Config represents the configuration for the varinterval middleware.
Click to show internal directories.
Click to hide internal directories.