admin

package
v0.0.0-...-1c5570b Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package admin 提供后台管理功能

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebAdmin

type WebAdmin struct {
	// contains filtered or unexported fields
}

WebAdmin Web管理界面

func NewWebAdmin

func NewWebAdmin(db *database.DB, password string) (*WebAdmin, error)

NewWebAdmin 创建Web管理界面 参数:

  • db: 数据库连接
  • password: 管理密码

返回值:

  • *WebAdmin: Web管理界面实例

func (*WebAdmin) ServeHTTP

func (w *WebAdmin) ServeHTTP(rw http.ResponseWriter, r *http.Request)

ServeHTTP 实现http.Handler接口

Jump to

Keyboard shortcuts

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