You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package dto
|
|
|
|
|
|
|
|
type Fail2BanBaseInfo struct {
|
|
|
|
IsEnable bool `json:"isEnable"`
|
|
|
|
IsActive bool `json:"isActive"`
|
|
|
|
IsExist bool `json:"isExist"`
|
|
|
|
Version string `json:"version"`
|
|
|
|
|
|
|
|
Port int `json:"port"`
|
|
|
|
MaxRetry int `json:"maxRetry"`
|
|
|
|
BanTime string `json:"banTime"`
|
|
|
|
FindTime string `json:"findTime"`
|
|
|
|
BanAction string `json:"banAction"`
|
|
|
|
LogPath string `json:"logPath"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Fail2BanSearch struct {
|
|
|
|
Status string `json:"status" validate:"required,oneof=banned ignore"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Fail2BanUpdate struct {
|
|
|
|
Key string `json:"key" validate:"required,oneof=port bantime findtime maxretry banaction logpath port"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Fail2BanSet struct {
|
|
|
|
IPs []string `json:"ips"`
|
|
|
|
Operate string `json:"operate" validate:"required,oneof=banned ignore"`
|
|
|
|
}
|