feat: implement caldav search
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
package properties
|
||||
|
||||
import "strings"
|
||||
|
||||
type PropertyName string
|
||||
|
||||
const (
|
||||
UIDPropertyName PropertyName = "UID"
|
||||
CommentPropertyName = "COMMENT"
|
||||
OrganizerPropertyName = "ORGANIZER"
|
||||
AttendeePropertyName = "ATTENDEE"
|
||||
ExceptionDateTimesPropertyName = "EXDATE"
|
||||
RecurrenceDateTimesPropertyName = "RDATE"
|
||||
RecurrenceRulePropertyName = "RRULE"
|
||||
LocationPropertyName = "LOCATION"
|
||||
)
|
||||
|
||||
type ParameterName string
|
||||
|
||||
const (
|
||||
CanonicalNameParameterName ParameterName = "CN"
|
||||
TimeZoneIdPropertyName = "TZID"
|
||||
ValuePropertyName = "VALUE"
|
||||
AlternateRepresentationName = "ALTREP"
|
||||
)
|
||||
|
||||
type Params map[ParameterName]string
|
||||
|
||||
func (p PropertyName) Equals(test string) bool {
|
||||
return strings.EqualFold(string(p), test)
|
||||
}
|
||||
Reference in New Issue
Block a user