pgadmin

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: BSD-3-Clause Imports: 28 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(i do.Injector) (*App, error)

func (*App) Info

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

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

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

func (*App) Status

func (s *App) Status() string

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

Jump to

Keyboard shortcuts

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