mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-01 07:59:09 +08:00
26 lines
573 B
Go
26 lines
573 B
Go
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"
|
|
"github.com/go-playground/validator/v10"
|
|
"github.com/robfig/cron/v3"
|
|
"github.com/sirupsen/logrus"
|
|
"github.com/spf13/viper"
|
|
"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
|
|
|
|
Cron *cron.Cron
|
|
MonitorCronID int
|
|
)
|