33 lines
625 B
Go
33 lines
625 B
Go
package mgolog
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/lego/core"
|
|
"go_dreamfactory/lego/core/cbase"
|
|
)
|
|
|
|
func NewModule() core.IModule {
|
|
m := new(MgoLog)
|
|
return m
|
|
}
|
|
|
|
type MgoLog struct {
|
|
cbase.ModuleBase
|
|
db_comp *DB_Comp
|
|
}
|
|
|
|
func (this *MgoLog) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
|
err = this.ModuleBase.Init(service, module, options)
|
|
|
|
return
|
|
}
|
|
|
|
func (this *MgoLog) GetType() core.M_Modules {
|
|
return comm.ModuleMgoLog
|
|
}
|
|
|
|
func (this *MgoLog) OnInstallComp() {
|
|
this.ModuleBase.OnInstallComp()
|
|
this.db_comp = this.RegisterComp(new(DB_Comp)).(*DB_Comp)
|
|
}
|