Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
func NewLimiter ¶
func NewLimiterWith ¶
func (*Limiter) BehaviorFor ¶
func (l *Limiter) BehaviorFor(u string, p int) SectionBehavior
func (*Limiter) SetPagesPerSection ¶
type SectionBehavior ¶
type SectionBehavior struct {
BaseDelay time.Duration
JitterFactor float64
BurstEvery int
BurstExtra time.Duration
FakeRequestProb float64
PageShuffleWidth int
}
func DeriveSectionBehavior ¶
func DeriveSectionBehavior(seed []byte, u string, idx int, sec []byte) SectionBehavior
Click to show internal directories.
Click to hide internal directories.