feat: caching headers

This commit is contained in:
2026-02-21 16:16:55 +01:00
parent 6c4b2190b3
commit 3f321f0836
21 changed files with 293 additions and 56 deletions
+19 -3
View File
@@ -1,7 +1,23 @@
package page
type Service struct{}
import (
"log/slog"
func New() *Service {
return &Service{}
"github.com/studio-b12/gowebdav"
)
type Service struct {
fs *gowebdav.Client
}
func New(fs *gowebdav.Client) *Service {
info, err := fs.ReadDir("/")
if err != nil {
slog.Error("could not read dir", "err", err)
}
slog.Info("file info", "info", info)
return &Service{
fs: fs,
}
}