2019-04-24 21:52:08 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// RegulationConfiguration represents the configuration related to regulation.
|
|
|
|
type RegulationConfiguration struct {
|
2020-04-05 12:37:21 +00:00
|
|
|
MaxRetries int `mapstructure:"max_retries"`
|
|
|
|
FindTime string `mapstructure:"find_time"`
|
|
|
|
BanTime string `mapstructure:"ban_time"`
|
|
|
|
}
|
|
|
|
|
|
|
|
var DefaultRegulationConfiguration = RegulationConfiguration{
|
|
|
|
MaxRetries: 3,
|
|
|
|
FindTime: "2m",
|
|
|
|
BanTime: "5m",
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|