refactor: simplify architecture and harden lifecycle

Remove obsolete implementations, centralize background task ownership and terminal-state recovery, consolidate frontend routing and log streaming, and enforce project-wide verification in CI.
This commit is contained in:
Awuqing
2026-08-26 11:32:00 +08:00
parent 95b27af600
commit c06bbec383
189 changed files with 8983 additions and 4264 deletions
@@ -0,0 +1,21 @@
package rclone
import "backupx/server/internal/storage"
// NewDefaultRegistry returns the storage factory set shared by Master, Agent,
// and the standalone Backint process.
func NewDefaultRegistry() *storage.Registry {
registry := storage.NewRegistry(
NewLocalDiskFactory(),
NewS3Factory(),
NewWebDAVFactory(),
NewGoogleDriveFactory(),
NewAliyunOSSFactory(),
NewTencentCOSFactory(),
NewQiniuKodoFactory(),
NewFTPFactory(),
NewRcloneFactory(),
)
RegisterAllBackends(registry)
return registry
}