forked from IceFireDB/IceFireDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.go
40 lines (33 loc) · 1.63 KB
/
global.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* @Author: gitsrc
* @Date: 2021-03-10 11:17:13
* @LastEditors: gitsrc
* @LastEditTime: 2021-03-12 14:16:42
* @FilePath: /IceFireDB/global.go
*/
package main
import (
"github.com/gitsrc/IceFireDB/rafthub"
"github.com/ledisdb/ledisdb/ledis"
"github.com/syndtr/goleveldb/leveldb"
)
//BuildDate: Binary file compilation time
//BuildVersion: Binary compiled GIT version
var (
BuildDate string
BuildVersion string
)
var db *leveldb.DB
var le *ledis.Ledis
var ldb *ledis.DB
var conf rafthub.Config //raft config
var banner string
func init() {
banner = `██╗ ██████╗███████╗███████╗██╗██████╗ ███████╗██████╗ ██████╗
██║██╔════╝██╔════╝██╔════╝██║██╔══██╗██╔════╝██╔══██╗██╔══██╗
██║██║ █████╗ █████╗ ██║██████╔╝█████╗ ██║ ██║██████╔╝
██║██║ ██╔══╝ ██╔══╝ ██║██╔══██╗██╔══╝ ██║ ██║██╔══██╗
██║╚██████╗███████╗██║ ██║██║ ██║███████╗██████╔╝██████╔╝
╚═╝ ╚═════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝
`
}