2022-08-16 23:30:23 +08:00
|
|
|
package global
|
|
|
|
|
|
|
|
import (
|
2022-10-17 16:32:31 +08:00
|
|
|
"github.com/1Panel-dev/1Panel/backend/configs"
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/init/cache/badger_db"
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/init/session/psession"
|
2022-08-16 23:30:23 +08:00
|
|
|
"github.com/go-playground/validator/v10"
|
2022-09-08 11:39:14 +08:00
|
|
|
"github.com/robfig/cron/v3"
|
2022-08-16 23:30:23 +08:00
|
|
|
"github.com/sirupsen/logrus"
|
2023-01-29 16:38:34 +08:00
|
|
|
"github.com/spf13/viper"
|
2022-08-16 23:30:23 +08:00
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
DB *gorm.DB
|
|
|
|
LOG *logrus.Logger
|
|
|
|
CONF configs.ServerConfig
|
|
|
|
VALID *validator.Validate
|
|
|
|
SESSION *psession.PSession
|
|
|
|
CACHE *badger_db.Cache
|
2023-01-29 16:38:34 +08:00
|
|
|
Viper *viper.Viper
|
2022-09-08 11:39:14 +08:00
|
|
|
|
2022-09-20 19:12:48 +08:00
|
|
|
Cron *cron.Cron
|
2022-08-16 23:30:23 +08:00
|
|
|
)
|