Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFileUsed ¶
func ConfigFileUsed() string
ConfigFileUsed returns the file used to populate the config registry.
Types ¶
type Arguments ¶
type Arguments struct {
Logging struct {
LogLevel string `mapstructure:"log_level"`
LogFilePath string `mapstructure:"log_file_path"`
}
Network struct {
MasterProxyAddr string `mapstructure:"master_proxy_addr"`
DefaultUserAgent string `mapstructure:"default_user_agent"`
HTTPTimeout int `mapstructure:"http_timeout"`
HTTPRetry int `mapstructure:"http_retry"`
RotateProxyScoreThreshold float64 `mapstructure:"rotate_proxy_score_threshold"`
RotateProxyGlobalScoreThreshold float64 `mapstructure:"rotate_proxy_global_score_threshold"`
}
Probe struct {
Enabled bool `mapstructure:"enabled"`
Size int `mapstructure:"size"`
Interval int `mapstructure:"interval"`
Timeout int `mapstructure:"timeout"`
FailThreshold int `mapstructure:"fail_threshold"`
}
Scanner struct {
Enabled bool `mapstructure:"enabled"`
PoolSize int `mapstructure:"pool_size"`
MaxRetry int `mapstructure:"max_retry"`
}
Proxy struct {
Enabled bool `mapstructure:"enabled"`
EnableInspection bool `mapstructure:"enable_inspection"`
BypassTraffic bool `mapstructure:"bypass_traffic"`
Port int `mapstructure:"port"`
BindUserAgent bool `mapstructure:"bind_user_agent"`
MemCacheLifespan int `mapstructure:"mem_cache_lifespan"`
FallbackMasterProxy bool `mapstructure:"fallback_master_proxy"`
SSLCertificatePath string `mapstructure:"ssl_certificate_folder"`
SSLCertificateRoot string `mapstructure:"ssl_certificate_root"`
BackendProxyTimeout int `mapstructure:"backend_proxy_timeout"`
MaxRetryDuration int `mapstructure:"max_retry_duration"`
EvictionTimeout int `mapstructure:"eviction_timeout"`
EvictionInterval int `mapstructure:"eviction_interval"`
EvictionScoreThreshold float32 `mapstructure:"eviction_score_threshold"`
}
WebDriver struct {
Timeout int `mapstructure:"timeout"`
Headless bool `mapstructure:"headless"`
NoImage bool `mapstructure:"no_image"`
MaxRetry int `mapstructure:"max_retry"`
WorkingFolder string `mapstructure:"working_folder"`
}
DataSource struct {
UserAgents string `mapstructure:"user_agents"`
UserAgentsTimeout int `mapstructure:"user_agents_timeout"`
UserAgentLifespan int `mapstructure:"user_agent_lifespan"`
SpysOne struct {
ProxyMode string `mapstructure:"proxy_mode"`
Headless bool `mapstructure:"headless"`
RefreshInterval int `mapstructure:"refresh_interval"`
Retry int `mapstructure:"retry"`
}
HideMyName struct {
ProxyMode string `mapstructure:"proxy_mode"`
Headless bool `mapstructure:"headless"`
RefreshInterval int `mapstructure:"refresh_interval"`
Retry int `mapstructure:"retry"`
HomePageTimeout int `mapstructure:"homepage_timeout"`
}
}
Database struct {
DbType string `mapstructure:"type"`
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
Path string `mapstructure:"path"`
Schema string `mapstructure:"schema"`
UserName string `mapstructure:"user_name"`
Password string `mapstructure:"password"`
MaxRetry int `mapstructure:"max_retry"`
}
}
Arguments arguments struct type
var Args Arguments
Args Global Application Arguments
Click to show internal directories.
Click to hide internal directories.