Initial commit 🌈
This commit is contained in:
31
pkg/dav/types.go
Normal file
31
pkg/dav/types.go
Normal file
@@ -0,0 +1,31 @@
|
||||
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 int `xml:"d:getcontentlength"`
|
||||
CreationDate string `xml:"d:creationdate"`
|
||||
LastModified string `xml:"d:getlastmodified"`
|
||||
IsHidden int `xml:"d:ishidden"`
|
||||
}
|
||||
|
||||
type ResourceType struct {
|
||||
Collection *struct{} `xml:"d:collection,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user