Versions in this module Expand all Collapse all v0 v0.1.0 Aug 31, 2019 Changes in this version + const ErrDuplicateParam + const ErrInvalidAlarm + const ErrInvalidBoolean + const ErrInvalidContentLine + const ErrInvalidContentLineName + const ErrInvalidContentLineParamName + const ErrInvalidContentLineParamValue + const ErrInvalidContentLineQuotedParamValue + const ErrInvalidContentLineValue + const ErrInvalidDuration + const ErrInvalidEncoding + const ErrInvalidEnd + const ErrInvalidFloat + const ErrInvalidOffset + const ErrInvalidParam + const ErrInvalidPeriod + const ErrInvalidPeriodDuration + const ErrInvalidPeriodEnd + const ErrInvalidPeriodStart + const ErrInvalidRecur + const ErrInvalidRecurByDay + const ErrInvalidRecurByHour + const ErrInvalidRecurByMinute + const ErrInvalidRecurByMonth + const ErrInvalidRecurByMonthDay + const ErrInvalidRecurBySecond + const ErrInvalidRecurBySetPos + const ErrInvalidRecurByWeekNum + const ErrInvalidRecurByYearDay + const ErrInvalidRecurFrequency + const ErrInvalidRecurWeekStart + const ErrInvalidStructure + const ErrInvalidTFloat + const ErrInvalidText + const ErrInvalidTime + const ErrInvalidValue + const ErrMissingAlarmAction + const ErrMissingRequired + const ErrRequirementNotMet + var ErrInvalidCalendar = errors.New("invalid calendar") + func Encode(w io.Writer, cal *Calendar) error + type Alarm struct + type AlarmAudio struct + Acknowledged *PropAcknowledged + AlarmAgent []PropAlarmAgent + AlarmStatus *PropAlarmStatus + Attachment []PropAttachment + DefaultAlarm *PropDefaultAlarm + Duration *PropDuration + GeoLocation []PropGeoLocation + LastTriggered []PropLastTriggered + Proximity *PropProximity + RelatedTo *PropRelatedTo + Repeat *PropRepeat + Trigger PropTrigger + UID *PropUID + func (AlarmAudio) Type() string + type AlarmDisplay struct + Acknowledged *PropAcknowledged + AlarmAgent []PropAlarmAgent + AlarmStatus *PropAlarmStatus + DefaultAlarm *PropDefaultAlarm + Description PropDescription + Duration *PropDuration + GeoLocation []PropGeoLocation + LastTriggered []PropLastTriggered + Proximity *PropProximity + RelatedTo *PropRelatedTo + Repeat *PropRepeat + Trigger PropTrigger + UID *PropUID + func (AlarmDisplay) Type() string + type AlarmEmail struct + Acknowledged *PropAcknowledged + AlarmAgent []PropAlarmAgent + AlarmStatus *PropAlarmStatus + Attendee *PropAttendee + DefaultAlarm *PropDefaultAlarm + Description PropDescription + Duration *PropDuration + GeoLocation []PropGeoLocation + LastTriggered []PropLastTriggered + Proximity *PropProximity + RelatedTo *PropRelatedTo + Repeat *PropRepeat + Summary PropSummary + Trigger PropTrigger + UID *PropUID + func (AlarmEmail) Type() string + type AlarmNone struct + func (AlarmNone) Type() string + type AlarmType interface + Type func() string + type AlarmURI struct + Acknowledged *PropAcknowledged + AlarmAgent []PropAlarmAgent + AlarmStatus *PropAlarmStatus + DefaultAlarm *PropDefaultAlarm + Duration *PropDuration + GeoLocation []PropGeoLocation + LastTriggered []PropLastTriggered + Proximity *PropProximity + RelatedTo *PropRelatedTo + Repeat *PropRepeat + UID *PropUID + URI PropURI + func (AlarmURI) Type() string + type Binary []byte + type Boolean bool + type Calendar struct + Event []Event + FreeBusy []FreeBusy + Journal []Journal + ProductID PropProductID + Timezone []Timezone + Todo []Todo + Version PropVersion + func Decode(r io.Reader) (*Calendar, error) + func NewCalendar() *Calendar + func (s *Calendar) AddEvent(event Event) + func (s *Calendar) AddTimezone(timezone Timezone) + func (s *Calendar) SetProductID(productID string) + type CalendarAddress struct + type Date struct + type DateTime struct + type DayRecur struct + Day WeekDay + Occurrence int8 + type Daylight struct + Comment []PropComment + DateTimeStart PropDateTimeStart + RecurrenceDateTimes []PropRecurrenceDateTimes + RecurrenceRule *PropRecurrenceRule + TimezoneName []PropTimezoneName + TimezoneOffsetFrom PropTimezoneOffsetFrom + TimezoneOffsetTo PropTimezoneOffsetTo + type Duration struct + Days uint + Hours uint + Minutes uint + Negative bool + Seconds uint + Weeks uint + type Event struct + Alarm []Alarm + Attachment []PropAttachment + Attendee []PropAttendee + Categories []PropCategories + Class *PropClass + Comment []PropComment + Contact []PropContact + Created *PropCreated + DateTimeEnd *PropDateTimeEnd + DateTimeStamp PropDateTimeStamp + DateTimeStart *PropDateTimeStart + Description *PropDescription + Duration *PropDuration + ExceptionDateTime []PropExceptionDateTime + Geo *PropGeo + LastModified *PropLastModified + Location *PropLocation + Organizer *PropOrganizer + Priority *PropPriority + RecurrenceDateTimes []PropRecurrenceDateTimes + RecurrenceID *PropRecurrenceID + RecurrenceRule *PropRecurrenceRule + RelatedTo []PropRelatedTo + RequestStatus []PropRequestStatus + Resources []PropResources + Sequence *PropSequence + Status *PropStatus + Summary *PropSummary + TimeTransparency *PropTimeTransparency + UID PropUID + URL *PropURL + func NewEvent(uid string, timeStamp time.Time) Event + func (s *Event) AddExceptionDateTime(dateTime time.Time, isDateTime bool) + func (s *Event) AddRecurrenceDateTimes(dateTime time.Time, isDateTime bool) + func (s *Event) SetDateTimeEnd(dateTime time.Time, isDateTime bool) + func (s *Event) SetDateTimeStart(dateTime time.Time, isDateTime bool) + func (s *Event) SetDescription(description string) + func (s *Event) SetLocation(location string) + func (s *Event) SetRecurrenceRule(frequency Frequency, until time.Time, isDateTime bool) + func (s *Event) SetSummary(summary string) + type Float float64 + type FreeBusy struct + Attendee []PropAttendee + Comment []PropComment + Contact *PropContact + DateTimeEnd *PropDateTimeEnd + DateTimeStamp PropDateTimeStamp + DateTimeStart *PropDateTimeStart + FreeBusy []PropFreeBusy + Organizer *PropOrganizer + RequestStatus []PropRequestStatus + UID PropUID + URL *PropURL + type Frequency uint8 + const Daily + const Hourly + const Minutely + const Monthly + const Secondly + const Weekly + const Yearly + type Integer int32 + type Journal struct + Attachment []PropAttachment + Attendee []PropAttendee + Categories []PropCategories + Class *PropClass + Comment []PropComment + Contact []PropContact + Created *PropCreated + DateTimeStamp PropDateTimeStamp + DateTimeStart *PropDateTimeStart + Description []PropDescription + ExceptionDateTime []PropExceptionDateTime + LastModified *PropLastModified + Organizer *PropOrganizer + RecurrenceDateTimes []PropRecurrenceDateTimes + RecurrenceID *PropRecurrenceID + RecurrenceRule *PropRecurrenceRule + RelatedTo []PropRelatedTo + RequestStatus []PropRequestStatus + Resources []PropResources + Sequence *PropSequence + Status *PropStatus + Summary *PropSummary + UID PropUID + URL *PropURL + type MText []Text + type Month uint8 + const April + const August + const December + const February + const January + const July + const June + const March + const May + const November + const October + const September + const UnknownMonth + type ParamAgentID string + func NewAgentID(v ParamAgentID) *ParamAgentID + type ParamAlternativeRepresentation URI + type ParamCalendarUserType uint8 + const CalendarUserTypeGroup + const CalendarUserTypeIndividual + const CalendarUserTypeResource + const CalendarUserTypeRoom + const CalendarUserTypeUnknown + func (t ParamCalendarUserType) New() *ParamCalendarUserType + type ParamCommonName string + func NewCommonName(v ParamCommonName) *ParamCommonName + type ParamDelagatee []CalendarAddress + type ParamDelegator []CalendarAddress + type ParamDirectoryEntry string + func NewDirectoryEntry(v ParamDirectoryEntry) *ParamDirectoryEntry + type ParamEncoding uint8 + const Encoding8bit + const EncodingBase64 + func (t ParamEncoding) New() *ParamEncoding + type ParamFormatType string + func NewFormatType(v ParamFormatType) *ParamFormatType + type ParamFreeBusyType uint8 + const FreeBusyTypeBusy + const FreeBusyTypeBusyTentative + const FreeBusyTypeBusyUnavailable + const FreeBusyTypeFree + const FreeBusyTypeUnknown + func (t ParamFreeBusyType) New() *ParamFreeBusyType + type ParamID string + func NewID(v ParamID) *ParamID + type ParamLanguage string + func NewLanguage(v ParamLanguage) *ParamLanguage + type ParamMember []string + func NewMember(v ParamMember) *ParamMember + type ParamParticipationRole uint8 + const ParticipationRoleChair + const ParticipationRoleNonParticipant + const ParticipationRoleOptParticipant + const ParticipationRoleRequiredParticipant + const ParticipationRoleUnknown + func (t ParamParticipationRole) New() *ParamParticipationRole + type ParamParticipationStatus uint8 + const ParticipationStatusAccepted + const ParticipationStatusCompleted + const ParticipationStatusDeclined + const ParticipationStatusDelegated + const ParticipationStatusInProcess + const ParticipationStatusNeedsAction + const ParticipationStatusTentative + const ParticipationStatusUnknown + func (t ParamParticipationStatus) New() *ParamParticipationStatus + type ParamRSVP Boolean + func NewRSVP(v ParamRSVP) *ParamRSVP + type ParamRange struct + type ParamRelated uint8 + const RelatedEnd + const RelatedStart + func (t ParamRelated) New() *ParamRelated + type ParamRelationshipType uint8 + const RelationshipTypeChild + const RelationshipTypeParent + const RelationshipTypeSibling + const RelationshipTypeUnknown + func (t ParamRelationshipType) New() *ParamRelationshipType + type ParamSentBy string + func NewSentBy(v ParamSentBy) *ParamSentBy + type ParamTimezoneID string + func NewTimezoneID(v ParamTimezoneID) *ParamTimezoneID + type ParamURI URI + type ParamValue uint8 + const ValueBinary + const ValueBoolean + const ValueCalendarAddress + const ValueDate + const ValueDateTime + const ValueDuration + const ValueFloat + const ValueInteger + const ValuePeriod + const ValueRecur + const ValueText + const ValueTime + const ValueURI + const ValueUTCOffset + const ValueUnknown + func (t ParamValue) New() *ParamValue + type Period struct + Duration Duration + End DateTime + Start DateTime + type PropAcknowledged DateTime + type PropAction uint8 + const ActionAudio + const ActionDisplay + const ActionEmail + func (p PropAction) New() *PropAction + type PropAlarmAgent struct + AgentID *ParamAgentID + ID *ParamID + URI *ParamURI + type PropAlarmStatus uint8 + const AlarmStatusActive + const AlarmStatusCancelled + const AlarmStatusCompleted + func (p PropAlarmStatus) New() *PropAlarmStatus + type PropAttachment struct + Binary *Binary + FormatType *ParamFormatType + URI *URI + type PropAttendee struct + CalendarUserType *ParamCalendarUserType + CommonName *ParamCommonName + Delagatee ParamDelagatee + Delegator ParamDelegator + DirectoryEntry *ParamDirectoryEntry + Language *ParamLanguage + Member ParamMember + ParticipationRole *ParamParticipationRole + ParticipationStatus *ParamParticipationStatus + RSVP *ParamRSVP + SentBy *ParamSentBy + type PropCalendarScale uint8 + const CalendarScaleGregorian + func (p PropCalendarScale) New() *PropCalendarScale + type PropCategories struct + Language *ParamLanguage + type PropClass uint8 + const ClassConfidential + const ClassPrivate + const ClassPublic + func (p PropClass) New() *PropClass + type PropComment struct + AlternativeRepresentation *ParamAlternativeRepresentation + Language *ParamLanguage + type PropCompleted DateTime + type PropContact struct + AlternativeRepresentation *ParamAlternativeRepresentation + Language *ParamLanguage + type PropCreated DateTime + type PropDateTimeEnd struct + Date *Date + DateTime *DateTime + type PropDateTimeStamp DateTime + type PropDateTimeStart struct + Date *Date + DateTime *DateTime + type PropDefaultAlarm Boolean + type PropDescription struct + AlternativeRepresentation *ParamAlternativeRepresentation + Language *ParamLanguage + type PropDue struct + Date *Date + DateTime *DateTime + type PropDuration Duration + type PropExceptionDateTime struct + Date *Date + DateTime *DateTime + type PropFreeBusy struct + FreeBusyType *ParamFreeBusyType + type PropGeo TFloat + type PropGeoLocation URI + type PropLastModified DateTime + type PropLastTriggered DateTime + type PropLocation struct + AlternativeRepresentation *ParamAlternativeRepresentation + Language *ParamLanguage + type PropMethod Text + type PropOrganizer struct + CommonName *ParamCommonName + DirectoryEntry *ParamDirectoryEntry + Language *ParamLanguage + SentBy *ParamSentBy + type PropPercentComplete Integer + func NewPercentComplete(v PropPercentComplete) *PropPercentComplete + type PropPriority Integer + func NewPriority(v PropPriority) *PropPriority + type PropProductID Text + type PropProximity Text + type PropRecurrenceDateTimes struct + Date *Date + DateTime *DateTime + Period *Period + type PropRecurrenceID struct + Date *Date + DateTime *DateTime + Range *ParamRange + type PropRecurrenceRule Recur + type PropRelatedTo struct + RelationshipType *ParamRelationshipType + type PropRepeat Integer + func NewRepeat(v PropRepeat) *PropRepeat + type PropRequestStatus Text + type PropResources struct + AlternativeRepresentation *ParamAlternativeRepresentation + Language *ParamLanguage + type PropSequence Integer + func NewSequence(v PropSequence) *PropSequence + type PropStatus uint8 + const StatusCancelled + const StatusCompleted + const StatusConfirmed + const StatusDraft + const StatusFinal + const StatusInProcess + const StatusNeedsAction + const StatusTentative + func (p PropStatus) New() *PropStatus + type PropSummary struct + AlternativeRepresentation *ParamAlternativeRepresentation + Language *ParamLanguage + type PropTimeTransparency uint8 + const TimeTransparencyOpaque + const TimeTransparencyTransparent + func (p PropTimeTransparency) New() *PropTimeTransparency + type PropTimezoneID Text + type PropTimezoneName struct + Language *ParamLanguage + type PropTimezoneOffsetFrom UTCOffset + type PropTimezoneOffsetTo UTCOffset + type PropTimezoneURL URI + type PropTrigger struct + DateTime *DateTime + Duration *Duration + type PropUID Text + type PropURI URI + type PropURL URI + type PropVersion Text + const Version1 + const Version2 + type Recur struct + ByDay []DayRecur + ByHour []uint8 + ByMinute []uint8 + ByMonth []Month + ByMonthDay []int8 + BySecond []uint8 + BySetPos []int16 + ByWeekNum []int8 + ByYearDay []int16 + Count uint64 + Frequency Frequency + Interval uint64 + Until time.Time + UntilTime bool + WeekStart WeekDay + type Standard struct + Comment []PropComment + DateTimeStart PropDateTimeStart + RecurrenceDateTimes []PropRecurrenceDateTimes + RecurrenceRule *PropRecurrenceRule + TimezoneName []PropTimezoneName + TimezoneOffsetFrom PropTimezoneOffsetFrom + TimezoneOffsetTo PropTimezoneOffsetTo + func NewStandard(start time.Time, isDateTime bool, offsetToHour, offsetFromHour float64) Standard + type TFloat [2]float64 + type Text string + type Time struct + type Timezone struct + Daylight []Daylight + LastModified *PropLastModified + Standard []Standard + TimezoneID PropTimezoneID + TimezoneURL *PropTimezoneURL + func NewTimezone(timezoneID string, standards ...Standard) Timezone + type Todo struct + Alarm []Alarm + Attachment []PropAttachment + Attendee []PropAttendee + Categories []PropCategories + Class *PropClass + Comment []PropComment + Completed *PropCompleted + Contact []PropContact + Created *PropCreated + DateTimeStamp PropDateTimeStamp + DateTimeStart *PropDateTimeStart + Description *PropDescription + Due *PropDue + Duration *PropDuration + ExceptionDateTime []PropExceptionDateTime + Geo *PropGeo + LastModified *PropLastModified + Location *PropLocation + Organizer *PropOrganizer + PercentComplete *PropPercentComplete + Priority *PropPriority + RecurrenceDateTimes []PropRecurrenceDateTimes + RecurrenceID *PropRecurrenceID + RelatedTo []PropRelatedTo + RequestStatus []PropRequestStatus + Resources []PropResources + Sequence *PropSequence + Status *PropStatus + Summary *PropSummary + UID PropUID + URL *PropURL + type URI struct + type UTCOffset int + type WeekDay uint8 + const Friday + const Monday + const Saturday + const Sunday + const Thursday + const Tuesday + const UnknownDay + const Wednesday