databoard-transform/global.go

16 lines
373 B
Go
Raw Normal View History

package main
import (
2020-12-11 06:40:31 +00:00
mongodb "git.nonolive.co/eson.hsm/databoard-collect/database"
myrocks "git.nonolive.co/eson.hsm/databoard-database-myrocks"
"github.com/474420502/perfectshutdown"
)
var ps = perfectshutdown.New()
// mongodb 驱动
2020-12-11 06:40:31 +00:00
var mdb = mongodb.NewStatisticsDB("mongodb://sg-board1.livenono.com:27018")
// 默认全局的数据库对象
2020-12-11 06:40:31 +00:00
var db = myrocks.DB