mirror of
https://github.com/Awuqing/BackupX.git
synced 2026-09-04 23:16:41 +08:00
Remove obsolete implementations, centralize background task ownership and terminal-state recovery, consolidate frontend routing and log streaming, and enforce project-wide verification in CI.
22 lines
518 B
Go
22 lines
518 B
Go
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
|
|
}
|