mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2024-12-12 11:55:08 +08:00
20 lines
426 B
Go
20 lines
426 B
Go
|
package global
|
||
|
|
||
|
import (
|
||
|
"github.com/1Panel-dev/1Panel/configs"
|
||
|
"github.com/1Panel-dev/1Panel/init/cache/badger_db"
|
||
|
"github.com/1Panel-dev/1Panel/init/session/psession"
|
||
|
"github.com/go-playground/validator/v10"
|
||
|
"github.com/sirupsen/logrus"
|
||
|
"gorm.io/gorm"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
DB *gorm.DB
|
||
|
LOG *logrus.Logger
|
||
|
CONF configs.ServerConfig
|
||
|
VALID *validator.Validate
|
||
|
SESSION *psession.PSession
|
||
|
CACHE *badger_db.Cache
|
||
|
)
|