Documentation ¶
Index ¶
- type App
- func (s *App) ClearErrorLog(w http.ResponseWriter, r *http.Request)
- func (s *App) ClearSlowLog(w http.ResponseWriter, r *http.Request)
- func (s *App) GetConfig(w http.ResponseWriter, r *http.Request)
- func (s *App) GetRootPassword(w http.ResponseWriter, r *http.Request)
- func (s *App) Load(w http.ResponseWriter, r *http.Request)
- func (s *App) Route(r chi.Router)
- func (s *App) SetRootPassword(w http.ResponseWriter, r *http.Request)
- func (s *App) SlowLog(w http.ResponseWriter, r *http.Request)
- func (s *App) UpdateConfig(w http.ResponseWriter, r *http.Request)
- type SetRootPassword
- type UpdateConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func NewApp ¶
func NewApp(setting biz.SettingRepo) *App
func (*App) ClearErrorLog ¶
func (s *App) ClearErrorLog(w http.ResponseWriter, r *http.Request)
ClearErrorLog 清空错误日志
func (*App) ClearSlowLog ¶
func (s *App) ClearSlowLog(w http.ResponseWriter, r *http.Request)
ClearSlowLog 清空慢查询日志
func (*App) GetConfig ¶
func (s *App) GetConfig(w http.ResponseWriter, r *http.Request)
GetConfig 获取配置
func (*App) GetRootPassword ¶
func (s *App) GetRootPassword(w http.ResponseWriter, r *http.Request)
GetRootPassword 获取root密码
func (*App) SetRootPassword ¶
func (s *App) SetRootPassword(w http.ResponseWriter, r *http.Request)
SetRootPassword 设置root密码
func (*App) UpdateConfig ¶
func (s *App) UpdateConfig(w http.ResponseWriter, r *http.Request)
UpdateConfig 保存配置
type SetRootPassword ¶
type SetRootPassword struct {
Password string `form:"password" json:"password" validate:"required|password"`
}
type UpdateConfig ¶
type UpdateConfig struct {
Config string `form:"config" json:"config" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.