Documentation
¶
Index ¶
Constants ¶
View Source
const ( RateLimitInjecterEvery = "SECONDARY_RATE_LIMIT_INJECTER_EVERY" RateLimitInjecterDuration = "SECONDARY_RATE_LIMIT_INJECTER_DURATION" )
Variables ¶
This section is empty.
Functions ¶
func NewRateLimitInjecter ¶
func NewRateLimitInjecter(base http.RoundTripper, options *SecondaryRateLimitInjecterOptions) (http.RoundTripper, error)
Types ¶
type SecondaryRateLimitInjecter ¶
type SecondaryRateLimitInjecter struct {
AbuseAttempts int
// contains filtered or unexported fields
}
func (*SecondaryRateLimitInjecter) CurrentSleepEnd ¶
func (r *SecondaryRateLimitInjecter) CurrentSleepEnd() time.Time
func (*SecondaryRateLimitInjecter) NextSleepStart ¶
func (r *SecondaryRateLimitInjecter) NextSleepStart() time.Time
type SecondaryRateLimitInjecterOptions ¶
func (*SecondaryRateLimitInjecterOptions) IsNoop ¶
func (r *SecondaryRateLimitInjecterOptions) IsNoop() bool
func (*SecondaryRateLimitInjecterOptions) Validate ¶
func (r *SecondaryRateLimitInjecterOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.