feat: caching headers
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user