Files
zurg/pkg/dav/types.go
Ben Sarmiento cbf14e953f Optimize webdav
2023-11-21 10:32:14 +01:00

32 lines
644 B
Go

package dav
import (
"encoding/xml"
)
type MultiStatus struct {
XMLName xml.Name `xml:"d:multistatus"`
XMLNS string `xml:"xmlns:d,attr"`
Response []Response `xml:"d:response"`
}
type Response struct {
Href string `xml:"d:href"`
Propstat PropStat `xml:"d:propstat"`
}
type PropStat struct {
Prop Prop `xml:"d:prop"`
Status string `xml:"d:status"`
}
type Prop struct {
ResourceType ResourceType `xml:"d:resourcetype"`
ContentLength int64 `xml:"d:getcontentlength,omitempty"`
LastModified string `xml:"d:getlastmodified,omitempty"`
}
type ResourceType struct {
Value string `xml:",innerxml"`
}