databoard-transform/global.go
2020-12-11 14:40:31 +08:00

16 lines
373 B
Go

package main
import (
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 驱动
var mdb = mongodb.NewStatisticsDB("mongodb://sg-board1.livenono.com:27018")
// 默认全局的数据库对象
var db = myrocks.DB