Documentation
¶
Overview ¶
Package bootstrap 提供应用启动引导功能 负责初始化核心服务和加载所有模块
Index ¶
- type App
- func (app *App) GetDB() *gorm.DB
- func (app *App) GetFilesService() *files.Service
- func (app *App) GetModule(id string) module.Module
- func (app *App) GetNotificationService() *notification.Service
- func (app *App) GetRouter() *gin.Engine
- func (app *App) GetSystemService() *system.Service
- func (app *App) GetUsersService() *users.Service
- func (app *App) Start() error
- func (app *App) Stop() error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
DB *gorm.DB
Config *config.Config
EventBus *event.Bus
Registry *module.Registry
Logger *zap.Logger
Router *gin.Engine
TokenManager *auth.TokenManager
// 核心模块快捷访问
Setup *setup.Module
Users *users.Module
Files *files.Module
System *system.Module
Notification *notification.Module
Sudo *sudo.Module
Terminal *terminal.Module
Docker *docker.Module
Samba *samba.Module
SSH *ssh.Module
Sync *sync.Module
Download *download.Module
Flatpak *flatpak.Module
Windows *windows.Module
Packages *packages.Module
Retrogame *retrogame.Module
Photos *photos.Module
Video *video.Module
Backup *backup.Module
Premium *premium.Module
// 插件管理器
PluginManager *plugin.Manager
// contains filtered or unexported fields
}
App 代表应用实例
func (*App) GetFilesService ¶
GetFilesService 获取文件服务
func (*App) GetNotificationService ¶
func (app *App) GetNotificationService() *notification.Service
GetNotificationService 获取通知服务
func (*App) GetSystemService ¶
GetSystemService 获取系统服务
func (*App) GetUsersService ¶
GetUsersService 获取用户服务
Click to show internal directories.
Click to hide internal directories.