Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MaxDepth int `json:"max_depth"`
MinSleep int `json:"min_sleep"`
MaxSleep int `json:"max_sleep"`
Timeout int `json:"timeout"`
RootURLs []string `json:"root_urls"`
BlacklistedURLs []string `json:"blacklisted_urls"`
UserAgents []string `json:"user_agents"`
}
Config represents the configuration for the crawler
func LoadDefaultConfig ¶
LoadDefaultConfig loads the default configuration embedded in the binary
func LoadFromFile ¶
LoadFromFile loads configuration from a JSON file
Click to show internal directories.
Click to hide internal directories.