Versions in this module Expand all Collapse all v1 v1.0.1 Nov 8, 2024 v1.0.0 Nov 7, 2024 Changes in this version + func LoadConfig(configPath string) error + type Config struct + Crawler CrawlerConfig + Log LogConfig + Redis RedisConfig + Security SecurityConfig + Server ServerConfig + Validator ValidatorConfig + var GlobalConfig Config + func (c *Config) GetCheckInterval() time.Duration + func (c *Config) GetCrawlerInterval() time.Duration + func (c *Config) GetRedisAddr() string + func (c *Config) GetValidatorTimeout() time.Duration + type CrawlerConfig struct + BatchSize int + Interval int + type LogConfig struct + FilePath string + Level string + Output string + type RedisConfig struct + DB int + Host string + Password string + Port int + type SecurityConfig struct + APIKeyEnabled bool + APIKeys []string + AuthEnabled bool + BanDuration int + Password string + RateLimit int + RateLimitEnabled bool + RateWindow int + Username string + type ServerConfig struct + Mode string + Port int + type ValidatorConfig struct + CheckInterval int + TestURL string + Timeout int