Documentation
¶
Index ¶
- type Add
- type App
- func (s *App) BanList(w http.ResponseWriter, r *http.Request)
- func (s *App) Create(w http.ResponseWriter, r *http.Request)
- func (s *App) Delete(w http.ResponseWriter, r *http.Request)
- func (s *App) GetWhiteList(w http.ResponseWriter, r *http.Request)
- func (s *App) List(w http.ResponseWriter, r *http.Request)
- func (s *App) Route(r chi.Router)
- func (s *App) SetWhiteList(w http.ResponseWriter, r *http.Request)
- func (s *App) Status() string
- func (s *App) Unban(w http.ResponseWriter, r *http.Request)
- type BanList
- type Delete
- type Jail
- type SetWhiteList
- type Unban
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Add ¶
type Add struct {
Name string `json:"name" validate:"required"`
Type string `json:"type" validate:"required"`
MaxRetry int `json:"maxretry" validate:"required"`
FindTime int `json:"findtime" validate:"required"`
BanTime int `json:"bantime" validate:"required"`
WebsiteName string `json:"website_name"`
WebsiteMode string `json:"website_mode"`
WebsitePath string `json:"website_path"`
}
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GetWhiteList ¶
func (s *App) GetWhiteList(w http.ResponseWriter, r *http.Request)
GetWhiteList 获取白名单
func (*App) SetWhiteList ¶
func (s *App) SetWhiteList(w http.ResponseWriter, r *http.Request)
SetWhiteList 设置白名单
type SetWhiteList ¶
type SetWhiteList struct {
IP string `json:"ip" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.