youtubebeat/config/config.go

17 lines
385 B
Go
Raw Normal View History

2018-11-18 11:08:38 +01:00
// Config is put into a different package to prevent cyclic imports in case
// it is needed in several locations
package config
type Config struct {
2018-11-20 14:48:22 +01:00
Parallelism int `config:"parallelism"`
MaxDepth int `config:"max_depth"`
StartUrl string `config:"start_url"`
2018-11-18 11:08:38 +01:00
}
var DefaultConfig = Config{
Parallelism: 5,
MaxDepth: 10,
2018-11-20 14:48:22 +01:00
StartUrl: "https://www.youtube.com",
2018-11-18 11:08:38 +01:00
}