Documentation
¶
Index ¶
- type App
- func (s *App) GetConfig(w http.ResponseWriter, r *http.Request)
- func (s *App) Info(w http.ResponseWriter, r *http.Request)
- func (s *App) Login(w http.ResponseWriter, r *http.Request)
- func (s *App) Route(r chi.Router)
- func (s *App) Status() string
- func (s *App) UpdateConfig(w http.ResponseWriter, r *http.Request)
- func (s *App) UpdatePort(w http.ResponseWriter, r *http.Request)
- type Login
- type UpdateConfig
- type UpdatePort
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 (*App) Login ¶ added in v3.3.0
func (s *App) Login(w http.ResponseWriter, r *http.Request)
Login 代理登录 phpMyAdmin 并将会话 Cookie 转发给浏览器 面板与 phpMyAdmin 同主机不同端口,Cookie 按主机共享,浏览器凭转发的 Cookie 即为已登录态
func (*App) UpdateConfig ¶
func (s *App) UpdateConfig(w http.ResponseWriter, r *http.Request)
func (*App) UpdatePort ¶
func (s *App) UpdatePort(w http.ResponseWriter, r *http.Request)
type Login ¶ added in v3.3.0
type Login struct {
ServerID uint `form:"server_id" json:"server_id" validate:"required"`
}
type UpdateConfig ¶
type UpdateConfig struct {
Config string `form:"config" json:"config" validate:"required"`
}
type UpdatePort ¶
type UpdatePort struct {
Port uint `form:"port" json:"port" validate:"required && number && min:1 && max:65535"`
}
Click to show internal directories.
Click to hide internal directories.