mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-16 23:43:16 +00:00
feat: implement rate limiting for URL scraping
This commit is contained in:
@@ -15,8 +15,10 @@ type Config struct {
|
||||
}
|
||||
|
||||
type ScrapeConfig struct {
|
||||
URLs []URLConfig `yaml:"urls"`
|
||||
OutputType string `yaml:"output_type"`
|
||||
URLs []URLConfig `yaml:"urls"`
|
||||
OutputType string `yaml:"output_type"`
|
||||
RequestsPerSecond float64 `yaml:"requests_per_second"`
|
||||
BurstLimit int `yaml:"burst_limit"`
|
||||
}
|
||||
|
||||
type URLConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user