-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.go
More file actions
36 lines (31 loc) · 906 Bytes
/
module.go
File metadata and controls
36 lines (31 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package servermanager
import (
"github.com/coscms/webcore/library/cron"
"github.com/coscms/webcore/library/module"
"github.com/webx-top/echo"
"github.com/nging-plugins/servermanager/application/handler"
"github.com/nging-plugins/servermanager/application/library/setup"
// initialize
_ "github.com/nging-plugins/servermanager/application/library/servicemgr/initialize"
)
const ID = `server`
var Module = module.Module{
// Startup: ``,
// Cmder: map[string]cmder.Cmder{},
TemplatePath: map[string]string{
ID: `servermanager/template/backend`,
},
AssetsPath: []string{},
SQLCollection: setup.RegisterSQL,
Navigate: RegisterNavigate,
Route: handler.RegisterRoute,
CronJobs: []*cron.Jobx{
{
Name: `command`,
Example: ">command:commandId",
Description: echo.T(`快捷命令`),
RunnerGetter: handler.CommandJob,
},
},
DBSchemaVer: 0.4000,
}