feat: webdav storage

This commit is contained in:
krau
2024-10-11 00:07:11 +08:00
parent d1d284eedc
commit b3c59fde72
8 changed files with 87 additions and 11 deletions

View File

@@ -9,6 +9,7 @@ import (
"github.com/krau/SaveAny-Bot/logger"
"github.com/krau/SaveAny-Bot/storage/alist"
"github.com/krau/SaveAny-Bot/storage/local"
"github.com/krau/SaveAny-Bot/storage/webdav"
"github.com/krau/SaveAny-Bot/types"
)
@@ -29,6 +30,10 @@ func Init() {
Storages[types.Local] = new(local.Local)
Storages[types.Local].Init()
}
if config.Cfg.Storage.Webdav.Enable {
Storages[types.Webdav] = new(webdav.Webdav)
Storages[types.Webdav].Init()
}
logger.L.Debug("Storage initialized")
}