2019-04-24 21:52:08 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// RegulationConfiguration represents the configuration related to regulation.
|
|
|
|
type RegulationConfiguration struct {
|
2021-08-03 09:55:21 +00:00
|
|
|
MaxRetries int `koanf:"max_retries"`
|
|
|
|
FindTime string `koanf:"find_time,weak"`
|
|
|
|
BanTime string `koanf:"ban_time,weak"`
|
2020-04-05 12:37:21 +00:00
|
|
|
}
|
|
|
|
|
2020-04-20 21:03:38 +00:00
|
|
|
// DefaultRegulationConfiguration represents default configuration parameters for the regulator.
|
2020-04-05 12:37:21 +00:00
|
|
|
var DefaultRegulationConfiguration = RegulationConfiguration{
|
|
|
|
MaxRetries: 3,
|
|
|
|
FindTime: "2m",
|
|
|
|
BanTime: "5m",
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|