-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.go
39 lines (34 loc) · 1.13 KB
/
module.go
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
37
38
39
package caddymanager
import (
"github.com/coscms/webcore/library/config/cmder"
"github.com/coscms/webcore/library/config/extend"
"github.com/coscms/webcore/library/module"
"github.com/coscms/webcore/library/nlog"
"github.com/nging-plugins/caddymanager/application/handler"
pluginCmder "github.com/nging-plugins/caddymanager/application/library/cmder"
"github.com/nging-plugins/caddymanager/application/library/setup"
_ "github.com/nging-plugins/caddymanager/application/library/thirdparty/caddy2/cmder"
_ "github.com/nging-plugins/caddymanager/application/library/thirdparty/nginx/cmder"
)
const ID = `caddy`
var Module = module.Module{
Startup: pluginCmder.Name,
Extend: map[string]extend.Initer{
ID: pluginCmder.Initer,
},
Cmder: map[string]cmder.Cmder{
ID: pluginCmder.New(),
},
TemplatePath: map[string]string{
ID: `caddymanager/template/backend`,
},
AssetsPath: []string{},
SQLCollection: setup.RegisterSQL,
Dashboard: RegisterDashboard,
Navigate: RegisterNavigate,
Route: handler.RegisterRoute,
LogParser: map[string]nlog.LogParser{
`access`: handler.ParseTailLine,
},
DBSchemaVer: 0.3000,
}