18 lines
402 B
Go
18 lines
402 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
|
|
|
|
var Tables = myrocks.Tables
|