Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorDelay = fmt.Errorf("Service delay automatically injected")
View Source
var ErrorInjection = fmt.Errorf("Service error automatically injected")
View Source
var ErrorRateLimit = fmt.Errorf("Service exceeded rate limit")
Functions ¶
This section is empty.
Types ¶
type Injector ¶
type Injector struct {
// contains filtered or unexported fields
}
Injector allows errors and ratelmiting to be injected to a service
func NewInjector ¶
func (*Injector) SetErrorPercentage ¶
SetErrorPercentage sets the error rate for the injector must be a floating point number between 0 and 1
Click to show internal directories.
Click to hide internal directories.