Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DB *gorm.DB MonitorDB *gorm.DB GPUMonitorDB *gorm.DB TaskDB *gorm.DB CoreDB *gorm.DB AlertDB *gorm.DB LOG *logrus.Logger CONF ServerConfig VALID *validator.Validate CACHE *badger_db.Cache Viper *viper.Viper Dir SystemDir Cron *cron.Cron MonitorCronID cron.EntryID IsMaster bool I18n *i18n.Localizer AlertBaseJobID cron.EntryID AlertResourceJobID cron.EntryID TaskCtxMap = make(map[string]context.CancelFunc) )
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
Port string `mapstructure:"port"`
Version string `mapstructure:"version"`
EncryptKey string `mapstructure:"encrypt_key"`
Mode string `mapstructure:"mode"` // xpack [ Enable / Disable ]
IsDemo bool `mapstructure:"is_demo"`
InstallDir string `mapstructure:"install_dir"`
IsOffLine bool `mapstructure:"is_offline"`
}
type DockerConfig ¶
type DockerConfig struct {
Command string
}
type ServerConfig ¶
type ServerConfig struct {
Base Base `mapstructure:"base"`
RemoteURL RemoteURL `mapstructure:"remote_url"`
Log LogConfig `mapstructure:"log"`
DockerConfig DockerConfig
}
type SystemDir ¶
type SystemDir struct {
BaseDir string
DbDir string
LogDir string
TaskDir string
DataDir string
TmpDir string
LocalBackupDir string
AppDir string
ResourceDir string
IconCacheDir string
AppResourceDir string
AppInstallDir string
LocalAppResourceDir string
LocalAppInstallDir string
RemoteAppResourceDir string
CustomAppResourceDir string
OfflineAppResourceDir string
RuntimeDir string
RecycleBinDir string
SSLLogDir string
McpDir string
ConvertLogDir string
TensorRTLLMDir string
FirewallDir string
}
Click to show internal directories.
Click to hide internal directories.