Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyConfigPath = errors.New("empty configuration file path")
ErrEmptyConfigPath defines a sentinel error for an empty config path.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DataDir string `toml:"data_dir"` ListenAddr string `toml:"listen_addr"` Seeds []string `toml:"seeds" validate:"required,min=1"` ReseedSize uint `toml:"reseed_size"` IPStackKey string `toml:"ipstack_key" validate:"required,min=1"` CrawlInterval uint `toml:"crawl_interval"` RecheckInterval uint `toml:"recheck_interval"` }
Config defines all necessary tmcrawl configuration parameters.
func ParseConfig ¶
ParseConfig attempts to read and parse a tmcrawl config from the given file path. An error is returned if reading or parsing the config fails.
Click to show internal directories.
Click to hide internal directories.