Documentation ¶
Overview ¶
Package http implements a proxy that applies disruptions to HTTP requests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Disruption ¶
type Disruption struct { // Average delay introduced to requests AverageDelay time.Duration // Variation in the delay (with respect of the average delay) DelayVariation time.Duration // Fraction (in the range 0.0 to 1.0) of requests that will return an error ErrorRate float32 // Error code to be returned by requests selected in the error rate ErrorCode uint // Body to be returned when an error is injected ErrorBody string // List of url paths to be excluded from disruptions Excluded []string }
Disruption specifies disruptions in http requests
Click to show internal directories.
Click to hide internal directories.