Documentation ¶
Index ¶
- Constants
- Variables
- func BackendURLFunc(c echo.Context) error
- func BackendURLFuncMW() echo.MiddlewareFunc
- func DefaultConfigWatcher(mustOk bool)
- func FireConfigChange(file string) error
- func Initialize()
- func MakeSubdomains(domain string, appends []string) []string
- func OnConfigChange(fn func(file string) error)
Constants ¶
View Source
const ( DefaultTemplateDir = `./template/backend` DefaultAssetsDir = `./public/assets` DefaultAssetsURLPath = `/public/assets/backend` )
Variables ¶
View Source
var ( TemplateDir = DefaultTemplateDir //模板文件夹 AssetsDir = DefaultAssetsDir //素材文件夹 AssetsURLPath = DefaultAssetsURLPath DefaultAvatarURL = AssetsURLPath + `/images/user_128.png` RendererDo = func(driver.Driver) {} ParseStrings = map[string]string{} ParseStringFuncs = map[string]func() string{} DefaultLocalHostNames = []string{ `127.0.0.1`, `localhost`, } DefaultMiddlewares = []interface{}{middleware.Log()} )
Functions ¶
func BackendURLFunc ¶
func BackendURLFuncMW ¶
func BackendURLFuncMW() echo.MiddlewareFunc
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.