1
This commit is contained in:
parent
dd033a2521
commit
0cbea64e07
2
app.go
2
app.go
@ -103,7 +103,7 @@ func (this *app) init(userApp UserApp) {
|
||||
_tgLog.init()
|
||||
_dbFilter = new(dbFilter)
|
||||
_dbFilter.init()
|
||||
_goStyleDb = new(dbPool)
|
||||
_goStyleDb = new(goDbPool)
|
||||
_goStyleDb.init(GO_STYLE_DB)
|
||||
_jsStyleDb = new(dbPool)
|
||||
_jsStyleDb.init(JS_STYLE_DB)
|
||||
|
@ -6,7 +6,7 @@ var _sysLog *sysLog
|
||||
var _tgLog *tgLog
|
||||
var _httpCliMgr *httpCliMgr
|
||||
var _dbFilter *dbFilter
|
||||
var _goStyleDb *dbPool
|
||||
var _goStyleDb *goDbPool
|
||||
var _jsStyleDb *dbPool
|
||||
|
||||
func GetApp() App {
|
||||
@ -33,7 +33,7 @@ func GetDbFilter() *dbFilter {
|
||||
return _dbFilter
|
||||
}
|
||||
|
||||
func GetGoStyleDb() *dbPool {
|
||||
func GetGoStyleDb() *goDbPool {
|
||||
return _goStyleDb
|
||||
}
|
||||
|
||||
|
13
godbpool.go
Normal file
13
godbpool.go
Normal file
@ -0,0 +1,13 @@
|
||||
package f5
|
||||
|
||||
type goDbPool struct {
|
||||
dbPool
|
||||
}
|
||||
|
||||
func (this *goDbPool) init(style DBStyle) {
|
||||
this.dbPool.init(style)
|
||||
}
|
||||
|
||||
func (this *goDbPool) unInit() {
|
||||
this.dbPool.unInit()
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user