pmadmin

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

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const PAGE_FOLDER = "pages"
View Source
const PM_TOKEN_NAME = "pmtoken"

Variables

View Source
var TOKEN_KEY = ""

Functions

func CheckRequestToken

func CheckRequestToken(r *http.Request) bool

func InitKeyAndPage

func InitKeyAndPage(key string, title string, db *sql.DB, whitelist []string, uri_prefix string)

func Login

func Login(w http.ResponseWriter, r *http.Request) bool

return is wheher need login

Types

type HTML_PAGE_t

type HTML_PAGE_t struct {
	Title string
	Css   string
}

Jump to

Keyboard shortcuts

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