Documentation ¶
Index ¶
- Variables
- func NewAttachmentValue(params parameter.Container, s string) (types.Attachmentable, error)
- func NewRecurrenceDateTime(params parameter.Container, s string) (types.RecurrenceDateTime, error)
- type Action
- type ActionType
- type Attachment
- type Attendee
- type CalScale
- type Categories
- type Class
- type ClassType
- type Comment
- type Contact
- type DateTimeCompleted
- type DateTimeCreated
- type DateTimeDue
- type DateTimeEnd
- type DateTimeStamp
- type DateTimeStart
- type Description
- type Duration
- type ExceptionDateTimes
- type FreeBusyTime
- type Geo
- type IANA
- type LastModified
- type Location
- type Method
- type MethodType
- type NonStandard
- type Organizer
- type PercentComplete
- type Priority
- type ProdID
- type PropertyName
- type RecurrenceDateTimes
- type RecurrenceID
- type RecurrenceRule
- type RelatedTo
- type RepeatCount
- type RequestStatus
- type Resources
- type SequenceNumber
- type Status
- type StatusType
- type Summary
- type TimeTransparency
- type TimezoneIdentifier
- type TimezoneName
- type TimezoneOffsetFrom
- type TimezoneOffsetTo
- type TimezoneURL
- type TransparencyValueType
- type Trigger
- type UID
- type URL
- type Version
Constants ¶
This section is empty.
Variables ¶
var (
ErrInputIsEmpty = fmt.Errorf("Input is empty")
)
Functions ¶
func NewAttachmentValue ¶
func NewRecurrenceDateTime ¶
Types ¶
type Action ¶
Action is ACTION https://tools.ietf.org/html/rfc5545#section-3.8.6.1
type ActionType ¶
type ActionType string
const ( ActionTypeAudio ActionType = "AUDIO" ActionTypeDisplay ActionType = "DISPLAY" ActionTypeEMail ActionType = "EMAIL" )
type Attachment ¶
type Attachment struct { Parameters parameter.Container Value types.Attachmentable }
Attachment is ATTACH https://tools.ietf.org/html/rfc5545#section-3.8.1.1
func (*Attachment) SetAttachment ¶
func (a *Attachment) SetAttachment(params parameter.Container, value types.Attachmentable) error
type Attendee ¶
type Attendee struct { Parameter parameter.Container Value types.CalenderUserAddress }
Attendee is ATTENDEE https://tools.ietf.org/html/rfc5545#section-3.8.4.1
func (*Attendee) SetAttendee ¶
type CalScale ¶
CalScale is CALSCALE https://tools.ietf.org/html/rfc5545#section-3.7.1
type Categories ¶
Categories is CATEGORIES https://tools.ietf.org/html/rfc5545#section-3.8.1.2
func (*Categories) SetCategories ¶
SetCategories updates CATEGORIES specification https://tools.ietf.org/html/rfc5545#section-3.8.1.2
type Class ¶
Class is CLASS, optional property for components specification https://tools.ietf.org/html/rfc5545#section-3.8.1.3
type Comment ¶
Comment is COMMENT https://tools.ietf.org/html/rfc5545#section-3.8.1.4
type Contact ¶
Contact is CONTACT https://tools.ietf.org/html/rfc5545#section-3.8.4.2
type DateTimeCompleted ¶
DateTimeCompleted is COMPLETED https://tools.ietf.org/html/rfc5545#section-3.8.2.1
func (*DateTimeCompleted) SetCompleted ¶
type DateTimeCreated ¶
DateTimeCreated is CREATED https://tools.ietf.org/html/rfc5545#section-3.8.7.1
func (*DateTimeCreated) SetDateTimeCreated ¶
type DateTimeDue ¶
DateTimeDue is DUE https://tools.ietf.org/html/rfc5545#section-3.8.2.3
type DateTimeEnd ¶
DateTimeEnd is DTEND https://tools.ietf.org/html/rfc5545#section-3.8.2.2
type DateTimeStamp ¶
DateTimeStamp is DTSTAMP https://tools.ietf.org/html/rfc5545#section-3.8.7.2
func (*DateTimeStamp) SetDateTimeStamp ¶
type DateTimeStart ¶
type DateTimeStart struct { Parameter parameter.Container Value types.TimeType // DateTime or Date }
DateTimeStart is DTSTART https://tools.ietf.org/html/rfc5545#section-3.8.2.4
type Description ¶
SetDescription updates DESCRIPTION specification https://tools.ietf.org/html/rfc5545#section-3.8.1.5
func (*Description) SetDescription ¶
type Duration ¶
Duration is DURATION https://tools.ietf.org/html/rfc5545#section-3.8.2.5
type ExceptionDateTimes ¶
type ExceptionDateTimes struct { Parameter parameter.Container Values []types.TimeType // default is DateTime }
ExceptionDateTimes is EXDATE https://tools.ietf.org/html/rfc5545#section-3.8.5.1
func (*ExceptionDateTimes) SetExceptionDateTimes ¶
type FreeBusyTime ¶
FreeBusyTime is FREEBUSY https://tools.ietf.org/html/rfc5545#section-3.8.2.6
func (*FreeBusyTime) SetFreeBusyTime ¶
type Geo ¶
Geo is GEO specification https://tools.ietf.org/html/rfc5545#section-3.8.1.6
type IANA ¶
type IANA struct { Name string Parameter parameter.Container Value interface{} // any types can be }
IANA is IANA-registered property https://tools.ietf.org/html/rfc5545#section-3.8.8.1
type LastModified ¶
LastModified is LAST-MODIFIED https://tools.ietf.org/html/rfc5545#section-3.8.7.3
func (*LastModified) SetLastModified ¶
type Location ¶
Locaiton is LOCATION location of component https://tools.ietf.org/html/rfc5545#section-3.8.1.7
type Method ¶
Method is Method https://tools.ietf.org/html/rfc5545#section-3.7.2
type MethodType ¶
type MethodType string
Method is content-type list of methods is defined in https://www.iana.org/assignments/icalendar/icalendar.xhtml#methods used by https://tools.ietf.org/html/rfc5545#section-3.6
const ( MethodTypePublish MethodType = "PUBLISH" MethodTypeRequest MethodType = "REQUEST" MethodTypeReply MethodType = "REPLY" MethodTypeAdd MethodType = "ADD" MethodTypeCancel MethodType = "CANCEL" MethodTypeRefresh MethodType = "REFRESH" MethodTypeCounter MethodType = "COUNTER" MethodTypeDeclinecounter MethodType = "DECLINECOUNTER" )
type NonStandard ¶
type NonStandard struct { Name string Parameter parameter.Container Value interface{} // any types can be }
NonStandard is property name with a "X-" prefix https://tools.ietf.org/html/rfc5545#section-3.8.8.2
func NewNonStandard ¶
func NewNonStandard(name string, params parameter.Container, value interface{}) (*NonStandard, error)
type Organizer ¶
type Organizer struct { Parameter parameter.Container Value types.CalenderUserAddress }
Organizer is ORGANIZER https://tools.ietf.org/html/rfc5545#section-3.8.4.3
func (*Organizer) SetOrganizer ¶
type PercentComplete ¶
PercentComplete is PERCENT-COMPLETE property for ToDo https://tools.ietf.org/html/rfc5545#section-3.8.1.8
func (*PercentComplete) SetPercentComplete ¶
type Priority ¶
Priority is PRIORITY used for ToDo or Event https://tools.ietf.org/html/rfc5545#section-3.8.1.9
type ProdID ¶
ProdID is PRODID https://tools.ietf.org/html/rfc5545#section-3.7.3
type PropertyName ¶
type PropertyName string
const ( // component block PropertyNameBegin PropertyName = "BEGIN" PropertyNameEnd PropertyName = "END" PropertyNameAction PropertyName = "ACTION" PropertyNameRepeatCount PropertyName = "REPEAT" PropertyNameTrigger PropertyName = "TRIGGER" // descriptive PropertyNameAttachment PropertyName = "ATTACH" PropertyNameCategories PropertyName = "CATEGORIES" PropertyNameClass PropertyName = "CLASS" PropertyNameComment PropertyName = "COMMENT" PropertyNameDescription PropertyName = "DESCRIPTION" PropertyNameGeo PropertyName = "GEO" PropertyNameLocaiton PropertyName = "LOCATION" PropertyNamePercentComplete PropertyName = "PERCENT-COMPLETE" PropertyNamePriority PropertyName = "PRIORITY" PropertyNameResources PropertyName = "RESOURCES" PropertyNameStatus PropertyName = "STATUS" PropertyNameSummary PropertyName = "SUMMARY" // time PropertyNameDateTimeCompleted PropertyName = "COMPLETED" PropertyNameDateTimeEnd PropertyName = "DTEND" PropertyNameDateTimeDue PropertyName = "DUE" PropertyNameDateTimeStart PropertyName = "DTSTART" PropertyNameDuration PropertyName = "DURATION" PropertyNameFreeBusyTime PropertyName = "FREEBUSY" PropertyNameTimeTransparency PropertyName = "TRANSP" // timezone PropertyNameTimezoneIdentifier PropertyName = "TZID" PropertyNameTimezoneName PropertyName = "TZNAME" PropertyNameTimezoneOffsetFrom PropertyName = "TZOFFSETFROM" PropertyNameTimezoneOffsetTo PropertyName = "TZOFFSETTO" PropertyNameTimezoneURL PropertyName = "TZURL" // relationship PropertyNameAttendee PropertyName = "ATTENDEE" PropertyNameContact PropertyName = "CONTACT" PropertyNameOrganizer PropertyName = "ORGANIZER" PropertyNameRecurrenceID PropertyName = "RECURRENCE-ID" PropertyNameRelatedTo PropertyName = "RELATED-TO" PropertyNameURL PropertyName = "URL" PropertyNameUID PropertyName = "UID" // change management PropertyNameDateTimeStamp PropertyName = "DTSTAMP" PropertyNameDateTimeCreated PropertyName = "CREATED" PropertyNameLastModified PropertyName = "LAST-MODIFIED" PropertyNameSequenceNumber PropertyName = "SEQUENCE" // recurrence PropertyNameExceptionDateTimes PropertyName = "EXDATE" PropertyNameRecurrenceDateTimes PropertyName = "RDATE" PropertyNameRecurrenceRule PropertyName = "RRULE" // Miscellaneous PropertyNameRequestStatus PropertyName = "REQUEST-STATUS" // Calender component PropertyNameCalScale PropertyName = "CALSCALE" PropertyNameMethod PropertyName = "METHOD" PropertyNameProdID PropertyName = "PRODID" PropertyNameVersion PropertyName = "VERSION" )
type RecurrenceDateTimes ¶
type RecurrenceDateTimes struct { Parameter parameter.Container Values []types.RecurrenceDateTime // default is DateTime, Date or Period are fine. }
RecurrenceDateTimes is RDATE https://tools.ietf.org/html/rfc5545#section-3.8.5.2
func (*RecurrenceDateTimes) SetRecurrenceDateTimes ¶
func (rdt *RecurrenceDateTimes) SetRecurrenceDateTimes(params parameter.Container, values []types.RecurrenceDateTime) error
type RecurrenceID ¶
RecurrenceID is RECURRENCE-ID https://tools.ietf.org/html/rfc5545#section-3.8.4.4
func (RecurrenceID) SetRecurrenceID ¶
TODO: implement
type RecurrenceRule ¶
type RecurrenceRule struct { Parameter parameter.Container Value types.RecurrenceRule }
RecurrenceRule is RRULE https://tools.ietf.org/html/rfc5545#section-3.8.5.3
func (*RecurrenceRule) SetRecurrenceRule ¶
func (rrule *RecurrenceRule) SetRecurrenceRule(params parameter.Container, value types.RecurrenceRule) error
type RelatedTo ¶
RelatedTo is RELATED-TO https://tools.ietf.org/html/rfc5545#section-3.8.4.5
type RepeatCount ¶
RepeatCount is REPEAT https://tools.ietf.org/html/rfc5545#section-3.8.6.2
func (*RepeatCount) SetRepeatCount ¶
type RequestStatus ¶
type RequestStatus struct { Parameter parameter.Container // StatusCode list is defined in https://tools.ietf.org/html/rfc5546#section-3.6 StatusCode types.Text StatusDescription types.Text ExtraData types.Text }
RequestStatus is REQUEST-STATUS https://tools.ietf.org/html/rfc5545#section-3.8.8.3
func (*RequestStatus) SetRequestStatus ¶
type Resources ¶
Resources is RESOURCES https://tools.ietf.org/html/rfc5545#section-3.8.1.10
type SequenceNumber ¶
SequenceNumber is SEQUENCE https://tools.ietf.org/html/rfc5545#section-3.8.7.4
func (*SequenceNumber) SetSequenceNumber ¶
type Status ¶
type Status struct { Parameter parameter.Container Value StatusType }
Status is STATUS https://tools.ietf.org/html/rfc5545#section-3.8.1.11
type StatusType ¶
type StatusType string
const ( StatusTypeTentative StatusType = "TENTATIVE" StatusTypeConfirmed StatusType = "CONFIRMED" StatusTypeCancelled StatusType = "CANCELLED" StatusTypeNeedsAction StatusType = "NEEDS-ACTION" StatusTypeCompleted StatusType = "COMPLETED" StatusTypeInProcess StatusType = "IN-PROCESS" StatusTypeDraft StatusType = "DRAFT" StatusTypeFinal StatusType = "FINAL" )
type Summary ¶
Summary is SUMMARY used for "VEVENT", "VTODO", "VJOURNAL", or "VALARM" https://tools.ietf.org/html/rfc5545#section-3.8.1.12
type TimeTransparency ¶
type TimeTransparency struct { Parameter parameter.Container Value TransparencyValueType }
TimeTransparency is TRANSP https://tools.ietf.org/html/rfc5545#section-3.8.2.7
func (*TimeTransparency) SetTransparency ¶
TODO: maybe fix input value type to TransparencyValueType to force value type
type TimezoneIdentifier ¶
TimezoneIdentifier is TZID https://tools.ietf.org/html/rfc5545#section-3.8.3.1
func (*TimezoneIdentifier) SetTimezoneID ¶
type TimezoneName ¶
TimezoneName is TZNAME https://tools.ietf.org/html/rfc5545#section-3.8.3.2
func (*TimezoneName) SetTimezoneName ¶
type TimezoneOffsetFrom ¶
TimezoneOffsetFrom is TZOFFSETFROM https://tools.ietf.org/html/rfc5545#section-3.8.3.3
func (*TimezoneOffsetFrom) SetTimezoneOffsetFrom ¶
type TimezoneOffsetTo ¶
TimezoneOffsetTo is TZOFFSETTO https://tools.ietf.org/html/rfc5545#section-3.8.3.4
func (*TimezoneOffsetTo) SetTimezoneOffsetTo ¶
type TimezoneURL ¶
TimezoneURL is TZURL https://tools.ietf.org/html/rfc5545#section-3.8.3.5
func (*TimezoneURL) SetTimezoneURL ¶
type TransparencyValueType ¶
type TransparencyValueType string
const ( TransparencyValueTypeOpaque TransparencyValueType = "OPAQUE" TransparencyValueTypeTransparent TransparencyValueType = "TRANSPARENT" )
type Trigger ¶
type Trigger struct { Parameter parameter.Container Value interface{} // TODO: duration or datetime , default is duration }
Trigger is TRIGGER https://tools.ietf.org/html/rfc5545#section-3.8.6.3
type UID ¶
UID is UID https://tools.ietf.org/html/rfc5545#section-3.8.4.7
type URL ¶
URL is URL maybe name will be changed to UniformResourceLocator https://tools.ietf.org/html/rfc5545#section-3.8.4.6
type Version ¶
Version is VERSION https://tools.ietf.org/html/rfc5545#section-3.7.4
func NewVersion ¶
func NewVersion() *Version