2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 18:27:13 +08:00
Files
panel/internal/apps/fail2ban/request.go
2024-10-13 13:48:18 +08:00

30 lines
576 B
Go

package fail2ban
type Add struct {
Name string `json:"name"`
Type string `json:"type"`
MaxRetry int `json:"maxretry"`
FindTime int `json:"findtime"`
BanTime int `json:"bantime"`
WebsiteName string `json:"website_name"`
WebsiteMode string `json:"website_mode"`
WebsitePath string `json:"website_path"`
}
type Delete struct {
Name string `json:"name"`
}
type BanList struct {
Name string `json:"name"`
}
type Unban struct {
Name string `json:"name"`
IP string `json:"ip"`
}
type SetWhiteList struct {
IP string `json:"ip"`
}