1Panel/backend/global/global.go

26 lines
573 B
Go
Raw Normal View History

2022-08-16 15:30:23 +00:00
package global
import (
"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 15:30:23 +00:00
"github.com/go-playground/validator/v10"
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"
"github.com/spf13/viper"
2022-08-16 15:30:23 +00:00
"gorm.io/gorm"
)
var (
DB *gorm.DB
LOG *logrus.Logger
CONF configs.ServerConfig
VALID *validator.Validate
SESSION *psession.PSession
CACHE *badger_db.Cache
Viper *viper.Viper
2022-09-08 03:39:14 +00:00
Cron *cron.Cron
MonitorCronID int
2022-08-16 15:30:23 +00:00
)