1Panel/agent/global/global.go
zhengkunwang 5865a958fc
Some checks failed
sync2gitee / repo-sync (push) Failing after -8m10s
feat: 同步远程应用增加日志 (#6209)
2024-08-22 10:48:55 +00:00

34 lines
727 B
Go

package global
import (
"github.com/1Panel-dev/1Panel/agent/configs"
"github.com/1Panel-dev/1Panel/agent/init/cache/badger_db"
"github.com/dgraph-io/badger/v4"
"github.com/go-playground/validator/v10"
"github.com/nicksnyder/go-i18n/v2/i18n"
"github.com/robfig/cron/v3"
"github.com/sirupsen/logrus"
"github.com/spf13/viper"
"gorm.io/gorm"
)
var (
DB *gorm.DB
MonitorDB *gorm.DB
TaskDB *gorm.DB
CoreDB *gorm.DB
LOG *logrus.Logger
CONF configs.ServerConfig
VALID *validator.Validate
CACHE *badger_db.Cache
CacheDb *badger.DB
Viper *viper.Viper
Cron *cron.Cron
MonitorCronID cron.EntryID
OneDriveCronID cron.EntryID
IsMaster bool
I18n *i18n.Localizer
)