backend

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: AGPL-3.0 Imports: 28 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultTemplateDir   = `./template/backend`
	DefaultAssetsDir     = `./public/assets/backend`
	DefaultAssetsURLPath = `/public/assets/backend`
)

Variables

View Source
var (
	TemplateDir           = DefaultTemplateDir //模板文件夹
	AssetsDir             = DefaultAssetsDir   //素材文件夹
	AssetsURLPath         = DefaultAssetsURLPath
	DefaultAvatarURL      = AssetsURLPath + `/images/user_128.png`
	RendererDo            = func(driver.Driver) {}
	TmplCustomParser      func(tmpl string, content []byte) []byte
	ParseStrings          = map[string]string{}
	ParseStringFuncs      = map[string]func() string{}
	DefaultLocalHostNames = []string{
		`127.0.0.1`, `localhost`,
	}
	DefaultMiddlewares = []interface{}{}
)

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