1Panel/backend/app/service/entry.go

80 lines
1.8 KiB
Go
Raw Normal View History

2022-08-16 23:30:23 +08:00
package service
import "github.com/1Panel-dev/1Panel/backend/app/repo"
2022-08-16 23:30:23 +08:00
type ServiceGroup struct {
2022-09-08 18:47:15 +08:00
AuthService
2022-11-24 23:56:48 +08:00
DashboardService
2022-10-20 18:45:47 +08:00
AppService
2022-11-18 14:27:40 +08:00
AppInstallService
2022-10-20 18:45:47 +08:00
ContainerService
ImageService
2022-10-09 16:17:15 +08:00
ImageRepoService
2022-10-20 18:45:47 +08:00
ComposeTemplateService
2022-11-14 19:19:42 +08:00
DockerService
2022-10-20 18:45:47 +08:00
MysqlService
2022-10-31 17:26:15 +08:00
RedisService
2022-10-20 18:45:47 +08:00
CronjobService
HostService
GroupService
CommandService
2022-08-24 11:10:50 +08:00
FileService
2022-10-20 18:45:47 +08:00
2022-09-15 10:44:43 +08:00
SettingService
2022-10-20 18:45:47 +08:00
BackupService
2022-10-28 17:04:57 +08:00
WebsiteGroupService
WebsiteService
2022-12-13 17:20:13 +08:00
WebsiteDnsAccountService
WebsiteSSLService
WebsiteAcmeAccountService
2022-11-15 17:20:57 +08:00
2022-11-23 16:19:05 +08:00
NginxService
2022-11-15 17:20:57 +08:00
LogService
2023-01-06 18:53:25 +08:00
SnapshotService
2023-01-30 21:05:20 +08:00
UpgradeService
2022-08-16 23:30:23 +08:00
}
var ServiceGroupApp = new(ServiceGroup)
var (
2022-10-20 18:45:47 +08:00
commonRepo = repo.RepoGroupApp.CommonRepo
appRepo = repo.RepoGroupApp.AppRepo
appTagRepo = repo.RepoGroupApp.AppTagRepo
appDetailRepo = repo.RepoGroupApp.AppDetailRepo
tagRepo = repo.RepoGroupApp.TagRepo
appInstallRepo = repo.RepoGroupApp.AppInstallRepo
appInstallResourceRepo = repo.RepoGroupApp.AppInstallResourceRpo
2022-10-20 18:45:47 +08:00
mysqlRepo = repo.RepoGroupApp.MysqlRepo
imageRepoRepo = repo.RepoGroupApp.ImageRepoRepo
composeRepo = repo.RepoGroupApp.ComposeTemplateRepo
cronjobRepo = repo.RepoGroupApp.CronjobRepo
hostRepo = repo.RepoGroupApp.HostRepo
groupRepo = repo.RepoGroupApp.GroupRepo
commandRepo = repo.RepoGroupApp.CommandRepo
settingRepo = repo.RepoGroupApp.SettingRepo
backupRepo = repo.RepoGroupApp.BackupRepo
websiteRepo = repo.NewIWebsiteRepo()
2022-12-13 17:20:13 +08:00
websiteGroupRepo = repo.RepoGroupApp.WebsiteGroupRepo
websiteDomainRepo = repo.RepoGroupApp.WebsiteDomainRepo
2022-11-18 14:27:40 +08:00
websiteDnsRepo = repo.RepoGroupApp.WebsiteDnsAccountRepo
websiteSSLRepo = repo.NewISSLRepo()
websiteAcmeRepo = repo.NewIAcmeAccountRepo()
2022-11-15 17:20:57 +08:00
2023-01-06 18:53:25 +08:00
logRepo = repo.RepoGroupApp.LogRepo
snapshotRepo = repo.NewISnapshotRepo()
2022-08-16 23:30:23 +08:00
)