phpmyadmin

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: 25 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) GetConfig

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

func (*App) Info

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

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

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

func (*App) Status added in v3.2.2

func (s *App) Status() string

Status phpMyAdmin 由 nginx 站点承载,运行状态与 nginx 一致

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

Jump to

Keyboard shortcuts

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