Documentation ¶
Index ¶
- Variables
- func NewAttachmentValue(params parameter.Container, s string) (types.AttachmentValue, error)
- func NewRecurrenceDateTime(params parameter.Container, s string) (types.RecurrenceDateTimeValue, error)
- func NewTriggerValue(params parameter.Container, value string) (types.TriggerValue, error)
- func NewValidationError(msg string) 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 Name
- type NonStandard
- type Organizer
- type PercentComplete
- type Priority
- type ProdID
- 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 ValidationError
- type Version
Constants ¶
This section is empty.
Variables ¶
var (
ErrInputIsEmpty = fmt.Errorf("Input is empty")
)
Functions ¶
func NewAttachmentValue ¶
func NewRecurrenceDateTime ¶
func NewTriggerValue ¶ added in v0.0.2
func NewValidationError ¶ added in v0.1.0
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 { Parameter parameter.Container Value types.AttachmentValue }
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.AttachmentValue) error
func (*Attachment) Validate ¶ added in v0.1.0
func (a *Attachment) Validate() 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
func (*CalScale) SetCalScale ¶
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
func (*Categories) Validate ¶ added in v0.1.0
func (c *Categories) Validate() error
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
func (*Comment) SetComment ¶
SetComment updates property value
type Contact ¶
Contact is CONTACT https://tools.ietf.org/html/rfc5545#section-3.8.4.2
func (*Contact) SetContact ¶
type DateTimeCompleted ¶
DateTimeCompleted is COMPLETED https://tools.ietf.org/html/rfc5545#section-3.8.2.1
func (*DateTimeCompleted) Decode ¶ added in v0.1.0
func (dtc *DateTimeCompleted) Decode(w io.Writer) error
func (*DateTimeCompleted) SetCompleted ¶
func (*DateTimeCompleted) Validate ¶ added in v0.1.0
func (dtc *DateTimeCompleted) Validate() error
type DateTimeCreated ¶
DateTimeCreated is CREATED https://tools.ietf.org/html/rfc5545#section-3.8.7.1
func (*DateTimeCreated) Decode ¶ added in v0.1.0
func (dc *DateTimeCreated) Decode(w io.Writer) error
func (*DateTimeCreated) SetDateTimeCreated ¶
func (*DateTimeCreated) Validate ¶ added in v0.1.0
func (dc *DateTimeCreated) Validate() error
type DateTimeDue ¶
DateTimeDue is DUE https://tools.ietf.org/html/rfc5545#section-3.8.2.3
func (*DateTimeDue) Validate ¶ added in v0.1.0
func (dtd *DateTimeDue) Validate() error
type DateTimeEnd ¶
DateTimeEnd is DTEND https://tools.ietf.org/html/rfc5545#section-3.8.2.2
func (*DateTimeEnd) Validate ¶ added in v0.1.0
func (dte *DateTimeEnd) Validate() error
type DateTimeStamp ¶
DateTimeStamp is DTSTAMP https://tools.ietf.org/html/rfc5545#section-3.8.7.2
func (*DateTimeStamp) SetDateTimeStamp ¶
func (*DateTimeStamp) Validate ¶ added in v0.1.0
func (ds *DateTimeStamp) Validate() error
type DateTimeStart ¶
type DateTimeStart struct { Parameter parameter.Container Value types.TimeValue // DateTime or Date }
DateTimeStart is DTSTART https://tools.ietf.org/html/rfc5545#section-3.8.2.4
func (*DateTimeStart) Validate ¶ added in v0.1.0
func (dts *DateTimeStart) Validate() error
type Description ¶
Description is DESCRIPTION https://tools.ietf.org/html/rfc5545#section-3.8.1.5
func (*Description) SetDescription ¶
func (*Description) Validate ¶ added in v0.1.0
func (d *Description) Validate() error
type Duration ¶
Duration is DURATION https://tools.ietf.org/html/rfc5545#section-3.8.2.5
func (*Duration) SetDuration ¶
type ExceptionDateTimes ¶
type ExceptionDateTimes struct { Parameter parameter.Container Values []types.TimeValue // default is DateTime }
ExceptionDateTimes is EXDATE https://tools.ietf.org/html/rfc5545#section-3.8.5.1
func (*ExceptionDateTimes) Decode ¶ added in v0.1.0
func (edt *ExceptionDateTimes) Decode(w io.Writer) error
func (*ExceptionDateTimes) SetExceptionDateTimes ¶
func (*ExceptionDateTimes) Validate ¶ added in v0.1.0
func (edt *ExceptionDateTimes) Validate() error
type FreeBusyTime ¶
FreeBusyTime is FREEBUSY https://tools.ietf.org/html/rfc5545#section-3.8.2.6
func (*FreeBusyTime) SetFreeBusyTime ¶
func (*FreeBusyTime) Validate ¶ added in v0.1.0
func (fbt *FreeBusyTime) Validate() error
type Geo ¶
Geo is GEO specification https://tools.ietf.org/html/rfc5545#section-3.8.1.6
func (*Geo) SetGeoWithText ¶
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 ¶
func (*LastModified) Validate ¶ added in v0.1.0
func (lm *LastModified) Validate() error
type Location ¶
Location is LOCATION location of component https://tools.ietf.org/html/rfc5545#section-3.8.1.7
func (*Location) SetLocation ¶
type Method ¶
Method is Method https://tools.ietf.org/html/rfc5545#section-3.7.2
type MethodType ¶
type MethodType string
MethodType 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 Name ¶ added in v0.0.2
type Name string
Name is list of contents line name
const ( NameBegin Name = "BEGIN" NameEnd Name = "END" NameAction Name = "ACTION" NameRepeatCount Name = "REPEAT" NameTrigger Name = "TRIGGER" NameAttachment Name = "ATTACH" NameCategories Name = "CATEGORIES" NameClass Name = "CLASS" NameComment Name = "COMMENT" NameDescription Name = "DESCRIPTION" NameGeo Name = "GEO" NameLocation Name = "LOCATION" NamePercentComplete Name = "PERCENT-COMPLETE" NamePriority Name = "PRIORITY" NameResources Name = "RESOURCES" NameStatus Name = "STATUS" NameSummary Name = "SUMMARY" NameDateTimeCompleted Name = "COMPLETED" NameDateTimeEnd Name = "DTEND" NameDateTimeDue Name = "DUE" NameDateTimeStart Name = "DTSTART" NameDuration Name = "DURATION" NameFreeBusyTime Name = "FREEBUSY" NameTimeTransparency Name = "TRANSP" NameTimezoneIdentifier Name = "TZID" NameTimezoneName Name = "TZNAME" NameTimezoneOffsetFrom Name = "TZOFFSETFROM" NameTimezoneOffsetTo Name = "TZOFFSETTO" NameTimezoneURL Name = "TZURL" NameAttendee Name = "ATTENDEE" NameContact Name = "CONTACT" NameOrganizer Name = "ORGANIZER" NameRecurrenceID Name = "RECURRENCE-ID" NameRelatedTo Name = "RELATED-TO" NameURL Name = "URL" NameUID Name = "UID" NameDateTimeStamp Name = "DTSTAMP" NameDateTimeCreated Name = "CREATED" NameLastModified Name = "LAST-MODIFIED" NameSequenceNumber Name = "SEQUENCE" NameExceptionDateTimes Name = "EXDATE" NameRecurrenceDateTimes Name = "RDATE" NameRecurrenceRule Name = "RRULE" NameRequestStatus Name = "REQUEST-STATUS" NameCalScale Name = "CALSCALE" NameMethod Name = "METHOD" NameProdID Name = "PRODID" NameVersion Name = "VERSION" )
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) Decode ¶ added in v0.1.0
func (pc *PercentComplete) Decode(w io.Writer) error
func (*PercentComplete) SetPercentComplete ¶
func (*PercentComplete) Validate ¶ added in v0.1.0
func (pc *PercentComplete) Validate() error
type Priority ¶
Priority is PRIORITY used for ToDo or Event https://tools.ietf.org/html/rfc5545#section-3.8.1.9
func (*Priority) SetPriority ¶
type ProdID ¶
ProdID is PRODID https://tools.ietf.org/html/rfc5545#section-3.7.3
type RecurrenceDateTimes ¶
type RecurrenceDateTimes struct { Parameter parameter.Container Values []types.RecurrenceDateTimeValue // default is DateTime, Date or Period are fine. }
RecurrenceDateTimes is RDATE https://tools.ietf.org/html/rfc5545#section-3.8.5.2
func (*RecurrenceDateTimes) Decode ¶ added in v0.1.0
func (rdt *RecurrenceDateTimes) Decode(w io.Writer) error
func (*RecurrenceDateTimes) SetRecurrenceDateTimes ¶
func (rdt *RecurrenceDateTimes) SetRecurrenceDateTimes(params parameter.Container, values []types.RecurrenceDateTimeValue) error
func (*RecurrenceDateTimes) Validate ¶ added in v0.1.0
func (rdt *RecurrenceDateTimes) Validate() error
type RecurrenceID ¶
RecurrenceID is RECURRENCE-ID https://tools.ietf.org/html/rfc5545#section-3.8.4.4
func (RecurrenceID) SetRecurrenceID ¶
func (*RecurrenceID) Validate ¶ added in v0.1.0
func (rid *RecurrenceID) Validate() error
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
func (*RecurrenceRule) Validate ¶ added in v0.1.0
func (rr *RecurrenceRule) Validate() error
type RelatedTo ¶
RelatedTo is RELATED-TO https://tools.ietf.org/html/rfc5545#section-3.8.4.5
func (*RelatedTo) SetRelatedTo ¶
type RepeatCount ¶
RepeatCount is REPEAT https://tools.ietf.org/html/rfc5545#section-3.8.6.2
func (*RepeatCount) SetRepeatCount ¶
func (*RepeatCount) Validate ¶ added in v0.1.0
func (rc *RepeatCount) Validate() error
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
func (*Resources) SetResources ¶
type SequenceNumber ¶
SequenceNumber is SEQUENCE https://tools.ietf.org/html/rfc5545#section-3.8.7.4
func (*SequenceNumber) SetSequenceNumber ¶
func (*SequenceNumber) Validate ¶ added in v0.1.0
func (sn *SequenceNumber) Validate() error
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
func (*Summary) SetSummary ¶
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) Decode ¶ added in v0.1.0
func (tt *TimeTransparency) Decode(w io.Writer) error
func (*TimeTransparency) SetTransparency ¶
func (tt *TimeTransparency) SetTransparency(params parameter.Container, value TransparencyValueType) error
func (*TimeTransparency) Validate ¶ added in v0.1.0
func (tt *TimeTransparency) Validate() error
type TimezoneIdentifier ¶
TimezoneIdentifier is TZID https://tools.ietf.org/html/rfc5545#section-3.8.3.1
func (*TimezoneIdentifier) Decoce ¶ added in v0.1.0
func (ti *TimezoneIdentifier) Decoce(w io.Writer) error
func (*TimezoneIdentifier) SetTimezoneID ¶
func (*TimezoneIdentifier) Validate ¶ added in v0.1.0
func (ti *TimezoneIdentifier) Validate() error
type TimezoneName ¶
TimezoneName is TZNAME https://tools.ietf.org/html/rfc5545#section-3.8.3.2
func (*TimezoneName) SetTimezoneName ¶
func (*TimezoneName) Validate ¶ added in v0.1.0
func (tn *TimezoneName) Validate() error
type TimezoneOffsetFrom ¶
TimezoneOffsetFrom is TZOFFSETFROM https://tools.ietf.org/html/rfc5545#section-3.8.3.3
func (*TimezoneOffsetFrom) Decoce ¶ added in v0.1.0
func (tzofrom *TimezoneOffsetFrom) Decoce(w io.Writer) error
func (*TimezoneOffsetFrom) SetTimezoneOffsetFrom ¶
func (*TimezoneOffsetFrom) Validate ¶ added in v0.1.0
func (tzofrom *TimezoneOffsetFrom) Validate() error
type TimezoneOffsetTo ¶
TimezoneOffsetTo is TZOFFSETTO https://tools.ietf.org/html/rfc5545#section-3.8.3.4
func (*TimezoneOffsetTo) Decoce ¶ added in v0.1.0
func (tzoto *TimezoneOffsetTo) Decoce(w io.Writer) error
func (*TimezoneOffsetTo) SetTimezoneOffsetTo ¶
func (*TimezoneOffsetTo) Validate ¶ added in v0.1.0
func (tzoto *TimezoneOffsetTo) Validate() error
type TimezoneURL ¶
TimezoneURL is TZURL https://tools.ietf.org/html/rfc5545#section-3.8.3.5
func (*TimezoneURL) SetTimezoneURL ¶
func (*TimezoneURL) Validate ¶ added in v0.1.0
func (tzurl *TimezoneURL) Validate() error
type TransparencyValueType ¶
type TransparencyValueType string
const ( TransparencyValueTypeOpaque TransparencyValueType = "OPAQUE" TransparencyValueTypeTransparent TransparencyValueType = "TRANSPARENT" )
type Trigger ¶
type Trigger struct { Parameter parameter.Container Value types.TriggerValue }
Trigger is TRIGGER https://tools.ietf.org/html/rfc5545#section-3.8.6.3
func (*Trigger) SetTrigger ¶
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 ValidationError ¶ added in v0.1.0
type ValidationError struct {
// contains filtered or unexported fields
}
func (ValidationError) Error ¶ added in v0.1.0
func (v ValidationError) Error() string
type Version ¶
Version is VERSION https://tools.ietf.org/html/rfc5545#section-3.7.4
func NewVersion ¶
func NewVersion() *Version