Documentation ¶
Index ¶
- Constants
- Variables
- func NewAllEnabled() []engines.Name
- func NewInfo() []engines.Name
- func NewSettings() map[engines.Name]Settings
- type Cache
- type Category
- type Config
- type EngineRanking
- type Ranking
- type ReaderCategory
- type ReaderConfig
- type ReaderEngine
- type ReaderTimings
- type Redis
- type Server
- type Settings
- type Timings
Constants ¶
View Source
const DefaultLocale string = "en-US"
Variables ¶
View Source
var LogDumpLocation string = "dump/"
Functions ¶
func NewAllEnabled ¶
func NewSettings ¶
Types ¶
type Config ¶
type EngineRanking ¶
type Ranking ¶
type Ranking struct { REXP float64 `koanf:"rexp"` A float64 `koanf:"a"` B float64 `koanf:"b"` C float64 `koanf:"c"` D float64 `koanf:"d"` TRA float64 `koanf:"tra"` TRB float64 `koanf:"trb"` TRC float64 `koanf:"trc"` TRD float64 `koanf:"trd"` Engines map[string]EngineRanking `koanf:"engines"` }
func NewRanking ¶
func NewRanking() Ranking
type ReaderCategory ¶
type ReaderCategory struct { REngines map[string]ReaderEngine `koanf:"engines"` Ranking Ranking `koanf:"ranking"` RTimings ReaderTimings `koanf:"timings"` }
type ReaderConfig ¶
type ReaderEngine ¶
type ReaderEngine struct {
Enabled bool `koanf:"enabled"`
}
type ReaderTimings ¶
type ReaderTimings struct { // HardTimeout uint `koanf:"hardTimeout"` Timeout uint `koanf:"timeout"` PageTimeout uint `koanf:"pagetimeout"` Delay uint `koanf:"delay"` RandomDelay uint `koanf:"randomdelay"` Parallelism int `koanf:"parallelism"` }
in miliseconds
type Timings ¶
type Timings struct { // HardTimeout time.Duration Timeout time.Duration PageTimeout time.Duration Delay time.Duration RandomDelay time.Duration Parallelism int }
Delegates Timeout, PageTimeout to colly.Collector.SetRequestTimeout(); Note: See https://github.com/gocolly/colly/issues/644 Delegates Delay, RandomDelay, Parallelism to colly.Collector.Limit()
Click to show internal directories.
Click to hide internal directories.