databoard-transform/global.go

18 lines
402 B
Go
Raw Permalink 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
2020-12-13 17:28:05 +00:00
var Tables = myrocks.Tables