mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-07-10 15:02:04 +08:00
feat: add support for handling unsupported stream storage in download process
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user