mysql

package
v0.0.0-...-d8a4e70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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) Load

func (s *App) Load(w http.ResponseWriter, r *http.Request)

Load 获取负载

func (*App) Route

func (s *App) Route(r chi.Router)

func (*App) SetRootPassword

func (s *App) SetRootPassword(w http.ResponseWriter, r *http.Request)

SetRootPassword 设置root密码

func (*App) SlowLog

func (s *App) SlowLog(w http.ResponseWriter, r *http.Request)

SlowLog 获取慢查询日志

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL