Files
BackupX/server/internal/storage/rclone/registry.go
T
Awuqing c06bbec383 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.
2026-08-26 11:32:00 +08:00

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
}