27 lines
574 B
Go
27 lines
574 B
Go
package main
|
|
|
|
type MultiStatus struct {
|
|
Responses []Response `xml:"response"`
|
|
}
|
|
|
|
type Response struct {
|
|
Href string `xml:"href"`
|
|
PropStat []PropStat `xml:"propstat"`
|
|
}
|
|
|
|
type PropStat struct {
|
|
Prop Prop `xml:"prop"`
|
|
Status string `xml:"status"`
|
|
}
|
|
|
|
type Prop struct {
|
|
DisplayName string `xml:"displayname"`
|
|
Type ResourceType `xml:"resourcetype"`
|
|
CalendarData string `xml:"calendar-data"`
|
|
}
|
|
|
|
type ResourceType struct {
|
|
Collection *struct{} `xml:"DAV: collection"`
|
|
Calendar *struct{} `xml:"urn:ietf:params:xml:ns:caldav calendar"`
|
|
}
|