Documentation ¶
Index ¶
- Variables
- func Register(modules ...IModule)
- func SetAssets(backendSo *middleware.StaticOptions, frontendSo *middleware.StaticOptions, ...)
- func SetBackendAssets(assetsPath string)
- func SetBackendTemplate(key string, templatePath string)
- func SetTemplate(backendPa *ntemplate.PathAliases, frontendPa *ntemplate.PathAliases, ...)
- type IModule
- type Misc
- type Module
Constants ¶
This section is empty.
Variables ¶
View Source
var FrontendMisc = &Misc{}
View Source
var NgingPluginDir = `vendor/github.com/nging-plugins` // `../../nging-plugins`
View Source
var WebCoreDir = `vendor/github.com/coscms/webcore`
Functions ¶
func SetAssets ¶
func SetAssets(backendSo *middleware.StaticOptions, frontendSo *middleware.StaticOptions, assetsPath string)
func SetBackendAssets ¶
func SetBackendAssets(assetsPath string)
func SetBackendTemplate ¶
func SetTemplate ¶
func SetTemplate(backendPa *ntemplate.PathAliases, frontendPa *ntemplate.PathAliases, key string, templatePath string)
Types ¶
type Misc ¶ added in v0.1.0
type Misc struct { Template *ntemplate.PathAliases Assets *middleware.StaticOptions }
type Module ¶
type Module struct { Startup string // 默认启动项(多个用半角逗号“,”隔开) Extend map[string]extend.Initer // 注册扩展配置项 Cmder map[string]cmder.Cmder // 注册命令 TemplatePath map[string]string // 注册模板路径 AssetsPath []string // 注册素材路径 SQLCollection func(sc *config.SQLCollection) // 注册SQL语句 Dashboard func(dd *dashboard.Dashboards) // 注册控制面板首页区块 Route func(r *route.Collection) // 注册网址路由 LogParser map[string]common.LogParser // 注册日志解析器 Settings []*settings.SettingForm // 注册配置选项 CronJobs []*cron.Jobx // 注册定时任务 DBSchemaVer float64 // 设置数据库结构版本号 }
Click to show internal directories.
Click to hide internal directories.