Documentation
¶
Index ¶
- type App
- func (s *App) Info(w http.ResponseWriter, r *http.Request)
- func (s *App) Login(w http.ResponseWriter, r *http.Request)
- func (s *App) ResetPassword(w http.ResponseWriter, r *http.Request)
- func (s *App) Route(r chi.Router)
- func (s *App) Status() string
- func (s *App) UpdatePort(w http.ResponseWriter, r *http.Request)
- func (s *App) UpdateUsername(w http.ResponseWriter, r *http.Request)
- type ResetPassword
- type UpdatePort
- type UpdateUsername
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 ¶
func (s *App) Login(w http.ResponseWriter, r *http.Request)
Login 同步面板全部 PostgreSQL 服务器后代理登录 pgAdmin 并将会话 Cookie 转发给浏览器 面板与 pgAdmin 同主机不同端口,Cookie 按主机共享,浏览器凭转发的 Cookie 即为已登录态
func (*App) ResetPassword ¶
func (s *App) ResetPassword(w http.ResponseWriter, r *http.Request)
func (*App) UpdatePort ¶
func (s *App) UpdatePort(w http.ResponseWriter, r *http.Request)
func (*App) UpdateUsername ¶
func (s *App) UpdateUsername(w http.ResponseWriter, r *http.Request)
ResetPassword 通过 CLI 重置管理员密码并同步凭据文件 UpdateUsername 修改管理员账号,迁移服务器配置与用户存储目录
type ResetPassword ¶
type ResetPassword struct {
Password string `form:"password" json:"password" validate:"required && password"`
}
type UpdatePort ¶
type UpdatePort struct {
Port uint `form:"port" json:"port" validate:"required && number && min:1 && max:65535"`
}
type UpdateUsername ¶
type UpdateUsername struct {
Username string `form:"username" json:"username" validate:"required && email"`
}
Click to show internal directories.
Click to hide internal directories.