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 Initialize ¶
func Initialize()
func MakeSubdomains ¶
func OnConfigChange ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.