caldav: add Client.QueryCalendar

This commit is contained in:
Simon Ser
2020-02-03 17:26:55 +01:00
parent dd1527b97e
commit ca51e9427a
4 changed files with 124 additions and 1 deletions

View File

@@ -3,9 +3,34 @@
// CalDAV is defined in RFC 4791.
package caldav
import (
"time"
)
type Calendar struct {
Path string
Name string
Description string
MaxResourceSize int64
}
type CalendarCompRequest struct {
Name string
AllProps bool
Props []string
AllComps bool
Comps []CalendarCompRequest
}
type CalendarQuery struct {
Comp CalendarCompRequest
}
type CalendarObject struct {
Path string
ModTime time.Time
ETag string
Data []byte
}