runtime

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

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 NewLimiter(b []byte) *Limiter

func NewLimiterWith

func NewLimiterWith(b []byte, s []byte) *Limiter

func (*Limiter) BehaviorFor

func (l *Limiter) BehaviorFor(u string, p int) SectionBehavior

func (*Limiter) SetPagesPerSection

func (l *Limiter) SetPagesPerSection(n int)

func (*Limiter) SleepBeforeRequest

func (l *Limiter) SleepBeforeRequest(ctx context.Context, u string, p, r int)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL