Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var VERSION = "undefined"
Functions ¶
This section is empty.
Types ¶
type BlacklistedCfg ¶
type CrossrefCfg ¶
type SafeBrowsingCfg ¶
type ScanningCfg ¶
type StructureCfg ¶
type SystemConfig ¶
type SystemConfig struct {
LogType string `yaml:"LogType"`
GNUNetcatPath string `yaml:"GNUNetcatPath"`
BatchSize int `yaml:"BatchSize"`
DatabaseHost string `yaml:"DatabaseHost"`
LogLevel int `yaml:"LogLevel"`
Prefetch float64 `yaml:"Prefetch"`
Whitelist []string `yaml:"WhiteList"`
ImportWhitelist bool `yaml:"ImportWhitelist"`
BlacklistedConfig BlacklistedCfg `yaml:"BlackListed"`
CrossrefConfig CrossrefCfg `yaml:"Crossref"`
ScanningConfig ScanningCfg `yaml:"Scanning"`
StructureConfig StructureCfg `yaml:"Structure"`
BeaconConfig BeaconCfg `yaml:"Beacon"`
UrlsConfig UrlsCfg `yaml:"Urls"`
UserAgentConfig UserAgentCfg `yaml:"UserAgent"`
BroConfig BroCfg `yaml:"Bro"`
SafeBrowsing SafeBrowsingCfg `yaml:"SafeBrowsing"`
Version string
}
func GetConfig ¶
func GetConfig(cfgPath string) (*SystemConfig, bool)
GetConfig retrieves a configuration in order of precedence
type UserAgentCfg ¶
type UserAgentCfg struct {
UserAgentTable string `yaml:"UserAgentTable"`
}
Click to show internal directories.
Click to hide internal directories.