backend

package
v0.3.32 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: AGPL-3.0 Imports: 24 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultTemplateDir   = `./template/backend`      // 后台模板路径默认值
	DefaultAssetsDir     = `./public/assets/backend` // 后台素材路径默认值
	DefaultAssetsURLPath = `/public/assets/backend`  // 后台素材网址路径默认值
)

Variables

View Source
var (
	DefaultLocalHostNames = []string{
		`127.0.0.1`, `localhost`,
	}
)

Functions

func DefaultConfigWatcher

func DefaultConfigWatcher(mustOk bool)

func FireConfigChange

func FireConfigChange(file string) error

func Initialize

func Initialize()

func MakeSubdomains

func MakeSubdomains(domain string, appends []string) []string

func OnConfigChange

func OnConfigChange(fn func(file string) error)

func Prefix added in v0.2.3

func Prefix() string

func SetPrefix

func SetPrefix(prefix string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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