feat: caching headers

This commit is contained in:
2026-03-02 22:37:48 +01:00
parent 19fb5b9292
commit e689ab08c9
19 changed files with 292 additions and 55 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,
}
}