2022-08-16 15:30:23 +00:00
|
|
|
package global
|
|
|
|
|
|
|
|
import (
|
2022-10-17 08:32:31 +00: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"
|
2024-05-30 10:09:15 +00:00
|
|
|
"github.com/dgraph-io/badger/v4"
|
2022-08-16 15:30:23 +00:00
|
|
|
"github.com/go-playground/validator/v10"
|
2024-02-19 05:55:27 +00:00
|
|
|
"github.com/nicksnyder/go-i18n/v2/i18n"
|
2022-09-08 03:39:14 +00:00
|
|
|
"github.com/robfig/cron/v3"
|
2022-08-16 15:30:23 +00:00
|
|
|
"github.com/sirupsen/logrus"
|
2023-01-29 08:38:34 +00:00
|
|
|
"github.com/spf13/viper"
|
2022-08-16 15:30:23 +00:00
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2024-04-08 05:48:07 +00:00
|
|
|
DB *gorm.DB
|
|
|
|
MonitorDB *gorm.DB
|
|
|
|
LOG *logrus.Logger
|
|
|
|
CONF configs.ServerConfig
|
|
|
|
VALID *validator.Validate
|
|
|
|
SESSION *psession.PSession
|
|
|
|
CACHE *badger_db.Cache
|
2024-05-30 10:09:15 +00:00
|
|
|
CacheDb *badger.DB
|
2024-04-08 05:48:07 +00:00
|
|
|
Viper *viper.Viper
|
2022-09-08 03:39:14 +00:00
|
|
|
|
2024-01-19 08:48:41 +00:00
|
|
|
Cron *cron.Cron
|
|
|
|
MonitorCronID cron.EntryID
|
|
|
|
OneDriveCronID cron.EntryID
|
2024-02-19 05:55:27 +00:00
|
|
|
|
|
|
|
I18n *i18n.Localizer
|
2022-08-16 15:30:23 +00:00
|
|
|
)
|