feat: add support for handling unsupported stream storage in download process

This commit is contained in:
krau
2025-03-26 10:35:40 +08:00
parent 32519b8c08
commit 491ba55f1e
3 changed files with 46 additions and 28 deletions

View File

@@ -23,6 +23,11 @@ type Storage interface {
Save(ctx context.Context, reader io.Reader, storagePath string) error
}
type StorageNotSupportStream interface {
Storage
NotSupportStream() string
}
var Storages = make(map[string]Storage)
var UserStorages = make(map[int64][]Storage)