Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RabiConfig ¶
type RabiConfig struct {
// Delay the next request between from and to milliseconds
// if only from is specified, delay exactly from milliseconds
Delay []time.Duration `default:"2s,3s" json:"delay"`
// Concurrency limits concurrency
// TODO
Concurrency int `json:"concurrency"`
// ThrottleNum limits the request rate to ThrottleNum per ThrottleDuration
// TODO
ThrottleNum int `split_words:"true" json:"throttleNum"`
ThrottleDuration