feat 废弃jwt 、 学识分
This commit is contained in:
10
app/app.go
10
app/app.go
@@ -14,18 +14,14 @@ type Program struct {
|
||||
}
|
||||
|
||||
func (p *Program) Init(_ svc.Environment) error {
|
||||
base := &ModuleBase{}
|
||||
if err := base.Init(); err != nil {
|
||||
if err := config.LoadConfig(); err != nil {
|
||||
return err
|
||||
}
|
||||
p.moduleList = append(p.moduleList, base)
|
||||
p.moduleList = append(p.moduleList, (&module.Base{}).Bind(config.Get().Log))
|
||||
p.moduleList = append(p.moduleList, &ModuleWebsocket{})
|
||||
p.moduleList = append(p.moduleList, &ModulePprof{})
|
||||
|
||||
for i, m := range p.moduleList {
|
||||
if i == 0 {
|
||||
continue
|
||||
}
|
||||
for _, m := range p.moduleList {
|
||||
if err := m.Init(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user