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
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type Config struct {
|
2018-11-20 10:21:24 +01:00
|
|
|
Period time.Duration `config:"period"`
|
|
|
|
StartId string `config:"start_id"`
|
|
|
|
Parallelism int `config:"parallelism"`
|
|
|
|
MaxDepth int `config:"max_depth"`
|
2018-11-18 11:08:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
var DefaultConfig = Config{
|
2018-11-20 10:21:24 +01:00
|
|
|
Period: 1 * time.Second,
|
|
|
|
StartId: "SmBCZgcGlKk",
|
|
|
|
Parallelism: 5,
|
|
|
|
MaxDepth: 10,
|
2018-11-18 11:08:38 +01:00
|
|
|
}
|