mirror of
https://github.com/Awuqing/BackupX.git
synced 2026-09-05 15:37:03 +08:00
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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user