property

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInputIsEmpty = fmt.Errorf("Input is empty")
)

Functions

func NewAttachmentValue

func NewAttachmentValue(params parameter.Container, s string) (types.AttachmentValue, error)

func NewRecurrenceDateTime

func NewRecurrenceDateTime(params parameter.Container, s string) (types.RecurrenceDateTimeValue, error)

func NewTriggerValue added in v0.0.2

func NewTriggerValue(params parameter.Container, value string) (types.TriggerValue, error)

func NewValidationError added in v0.1.0

func NewValidationError(msg string) error

Types

type Action

type Action struct {
	Parameter parameter.Container
	Value     types.Text
}

Action is ACTION https://tools.ietf.org/html/rfc5545#section-3.8.6.1

func (*Action) Decode added in v0.1.0

func (a *Action) Decode(w io.Writer) error

func (*Action) SetAction

func (a *Action) SetAction(params parameter.Container, value types.Text) error

func (*Action) Validate added in v0.1.0

func (a *Action) Validate() error

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) Decode added in v0.1.0

func (a *Attachment) Decode(w io.Writer) error

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) Decode added in v0.1.0

func (a *Attendee) Decode(w io.Writer) error

func (*Attendee) SetAttendee

func (a *Attendee) SetAttendee(params parameter.Container, value types.CalenderUserAddress) error

func (*Attendee) Validate added in v0.1.0

func (a *Attendee) Validate() error

type CalScale

type CalScale struct {
	Parameter parameter.Container
	Value     types.Text
}

CalScale is CALSCALE https://tools.ietf.org/html/rfc5545#section-3.7.1

func (*CalScale) Decode added in v0.1.0

func (cs *CalScale) Decode(w io.Writer) error

func (*CalScale) SetCalScale

func (cs *CalScale) SetCalScale(params parameter.Container, value types.Text) error

func (*CalScale) Validate added in v0.1.0

func (cs *CalScale) Validate() error

type Categories

type Categories struct {
	Parameter parameter.Container
	Values    []types.Text
}

Categories is CATEGORIES https://tools.ietf.org/html/rfc5545#section-3.8.1.2

func (*Categories) Decode added in v0.1.0

func (c *Categories) Decode(w io.Writer) error

func (*Categories) SetCategories

func (c *Categories) SetCategories(params parameter.Container, values []types.Text) error

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

type Class struct {
	Parameter parameter.Container
	Value     types.Text
}

Class is CLASS, optional property for components specification https://tools.ietf.org/html/rfc5545#section-3.8.1.3

func (*Class) Decode added in v0.1.0

func (c *Class) Decode(w io.Writer) error

func (*Class) SetClass

func (c *Class) SetClass(params parameter.Container, value types.Text) error

func (*Class) Validate added in v0.1.0

func (c *Class) Validate() error

type ClassType

type ClassType string
const (
	ClassTypePublic       ClassType = "PUBLIC"
	ClassTypePrivate      ClassType = "PRIVATE"
	ClassTypeConfidential ClassType = "CONFIDENTIAL"
)

type Comment

type Comment struct {
	Parameter parameter.Container
	Value     types.Text
}

Comment is COMMENT https://tools.ietf.org/html/rfc5545#section-3.8.1.4

func (*Comment) Decode added in v0.1.0

func (c *Comment) Decode(w io.Writer) error

func (*Comment) SetComment

func (c *Comment) SetComment(params parameter.Container, value types.Text) error

SetComment updates property value

func (*Comment) Validate added in v0.1.0

func (c *Comment) Validate() error

type Contact

type Contact struct {
	Parameter parameter.Container
	Value     types.Text
}

Contact is CONTACT https://tools.ietf.org/html/rfc5545#section-3.8.4.2

func (*Contact) Decode added in v0.1.0

func (c *Contact) Decode(w io.Writer) error

func (*Contact) SetContact

func (c *Contact) SetContact(params parameter.Container, value types.Text) error

func (*Contact) Validate added in v0.1.0

func (c *Contact) Validate() error

type DateTimeCompleted

type DateTimeCompleted struct {
	Parameter parameter.Container
	Value     types.DateTime
}

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 (dtc *DateTimeCompleted) SetCompleted(params parameter.Container, value types.DateTime) error

func (*DateTimeCompleted) Validate added in v0.1.0

func (dtc *DateTimeCompleted) Validate() error

type DateTimeCreated

type DateTimeCreated struct {
	Parameter parameter.Container
	Value     types.DateTime
}

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 (dc *DateTimeCreated) SetDateTimeCreated(params parameter.Container, value types.DateTime) error

func (*DateTimeCreated) Validate added in v0.1.0

func (dc *DateTimeCreated) Validate() error

type DateTimeDue

type DateTimeDue struct {
	Parameter parameter.Container
	Value     types.TimeValue // DateTime or Date
}

DateTimeDue is DUE https://tools.ietf.org/html/rfc5545#section-3.8.2.3

func (*DateTimeDue) Decode added in v0.1.0

func (dtd *DateTimeDue) Decode(w io.Writer) error

func (*DateTimeDue) SetDue

func (dtd *DateTimeDue) SetDue(params parameter.Container, value types.TimeValue) error

func (*DateTimeDue) Validate added in v0.1.0

func (dtd *DateTimeDue) Validate() error

type DateTimeEnd

type DateTimeEnd struct {
	Parameter parameter.Container
	Value     types.TimeValue // DateTime or Date
}

DateTimeEnd is DTEND https://tools.ietf.org/html/rfc5545#section-3.8.2.2

func (*DateTimeEnd) Decode added in v0.1.0

func (dte *DateTimeEnd) Decode(w io.Writer) error

func (*DateTimeEnd) SetEnd

func (dte *DateTimeEnd) SetEnd(params parameter.Container, value types.TimeValue) error

func (*DateTimeEnd) Validate added in v0.1.0

func (dte *DateTimeEnd) Validate() error

type DateTimeStamp

type DateTimeStamp struct {
	Parameter parameter.Container
	Value     types.DateTime
}

DateTimeStamp is DTSTAMP https://tools.ietf.org/html/rfc5545#section-3.8.7.2

func (*DateTimeStamp) Decode added in v0.1.0

func (ds *DateTimeStamp) Decode(w io.Writer) error

func (*DateTimeStamp) SetDateTimeStamp

func (ds *DateTimeStamp) SetDateTimeStamp(params parameter.Container, value types.DateTime) error

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) Decode added in v0.1.0

func (dts *DateTimeStart) Decode(w io.Writer) error

func (*DateTimeStart) SetStart

func (dts *DateTimeStart) SetStart(params parameter.Container, value types.TimeValue) error

func (*DateTimeStart) Validate added in v0.1.0

func (dts *DateTimeStart) Validate() error

type Description

type Description struct {
	Parameter parameter.Container
	Value     types.Text
}

Description is DESCRIPTION https://tools.ietf.org/html/rfc5545#section-3.8.1.5

func (*Description) Decode added in v0.1.0

func (d *Description) Decode(w io.Writer) error

func (*Description) SetDescription

func (d *Description) SetDescription(params parameter.Container, value types.Text) error

func (*Description) Validate added in v0.1.0

func (d *Description) Validate() error

type Duration

type Duration struct {
	Parameter parameter.Container
	Value     types.Duration
}

Duration is DURATION https://tools.ietf.org/html/rfc5545#section-3.8.2.5

func (*Duration) Decode added in v0.1.0

func (d *Duration) Decode(w io.Writer) error

func (*Duration) SetDuration

func (d *Duration) SetDuration(params parameter.Container, value types.Duration) error

func (*Duration) Validate added in v0.1.0

func (d *Duration) Validate() error

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 (edt *ExceptionDateTimes) SetExceptionDateTimes(params parameter.Container, values []types.TimeValue) error

func (*ExceptionDateTimes) Validate added in v0.1.0

func (edt *ExceptionDateTimes) Validate() error

type FreeBusyTime

type FreeBusyTime struct {
	Parameter parameter.Container
	Values    []types.Period
}

FreeBusyTime is FREEBUSY https://tools.ietf.org/html/rfc5545#section-3.8.2.6

func (*FreeBusyTime) Decode added in v0.1.0

func (fbt *FreeBusyTime) Decode(w io.Writer) error

func (*FreeBusyTime) SetFreeBusyTime

func (fbt *FreeBusyTime) SetFreeBusyTime(params parameter.Container, values []types.Period) error

func (*FreeBusyTime) Validate added in v0.1.0

func (fbt *FreeBusyTime) Validate() error

type Geo

type Geo struct {
	Parameter parameter.Container
	Latitude  types.Float
	Longitude types.Float
}

Geo is GEO specification https://tools.ietf.org/html/rfc5545#section-3.8.1.6

func (*Geo) Decode added in v0.1.0

func (g *Geo) Decode(w io.Writer) error

func (*Geo) SetGeo

func (g *Geo) SetGeo(params parameter.Container, latitude, longitude types.Float) error

func (*Geo) SetGeoWithText

func (g *Geo) SetGeoWithText(params parameter.Container, value types.Text) error

func (*Geo) Validate added in v0.1.0

func (g *Geo) Validate() error

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

func NewIANA

func NewIANA(name string, params parameter.Container, value interface{}) *IANA

type LastModified

type LastModified struct {
	Parameter parameter.Container
	Value     types.DateTime
}

LastModified is LAST-MODIFIED https://tools.ietf.org/html/rfc5545#section-3.8.7.3

func (*LastModified) Decode added in v0.1.0

func (lm *LastModified) Decode(w io.Writer) error

func (*LastModified) SetLastModified

func (lm *LastModified) SetLastModified(params parameter.Container, value types.DateTime) error

func (*LastModified) Validate added in v0.1.0

func (lm *LastModified) Validate() error

type Location

type Location struct {
	Parameter parameter.Container
	Value     types.Text
}

Location is LOCATION location of component https://tools.ietf.org/html/rfc5545#section-3.8.1.7

func (*Location) Decode added in v0.1.0

func (l *Location) Decode(w io.Writer) error

func (*Location) SetLocation

func (l *Location) SetLocation(params parameter.Container, value types.Text) error

func (*Location) Validate added in v0.1.0

func (l *Location) Validate() error

type Method

type Method struct {
	Parameter parameter.Container
	Value     types.Text
}

Method is Method https://tools.ietf.org/html/rfc5545#section-3.7.2

func (*Method) Decode added in v0.1.0

func (m *Method) Decode(w io.Writer) error

func (*Method) SetMethod

func (m *Method) SetMethod(params parameter.Container, value types.Text) error

func (*Method) Validate added in v0.1.0

func (m *Method) Validate() error

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) Decode added in v0.1.0

func (o *Organizer) Decode(w io.Writer) error

func (*Organizer) SetOrganizer

func (o *Organizer) SetOrganizer(params parameter.Container, value types.CalenderUserAddress) error

func (*Organizer) Validate added in v0.1.0

func (o *Organizer) Validate() error

type PercentComplete

type PercentComplete struct {
	Parameter parameter.Container
	Value     types.Integer
}

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 (pc *PercentComplete) SetPercentComplete(params parameter.Container, value types.Integer) error

func (*PercentComplete) Validate added in v0.1.0

func (pc *PercentComplete) Validate() error

type Priority

type Priority struct {
	Parameter parameter.Container
	Value     types.Integer
}

Priority is PRIORITY used for ToDo or Event https://tools.ietf.org/html/rfc5545#section-3.8.1.9

func (*Priority) Decode added in v0.1.0

func (p *Priority) Decode(w io.Writer) error

func (*Priority) SetPriority

func (p *Priority) SetPriority(params parameter.Container, value types.Integer) error

func (*Priority) Validate added in v0.1.0

func (p *Priority) Validate() error

type ProdID

type ProdID struct {
	Parameter parameter.Container
	Value     types.Text
}

ProdID is PRODID https://tools.ietf.org/html/rfc5545#section-3.7.3

func (*ProdID) Decode added in v0.1.0

func (p *ProdID) Decode(w io.Writer) error

func (*ProdID) SetProdID

func (p *ProdID) SetProdID(params parameter.Container, value types.Text) error

func (*ProdID) Validate added in v0.1.0

func (p *ProdID) Validate() error

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

type RecurrenceID struct {
	Parameter parameter.Container
	Value     types.TimeValue
}

RecurrenceID is RECURRENCE-ID https://tools.ietf.org/html/rfc5545#section-3.8.4.4

func (*RecurrenceID) Decode added in v0.1.0

func (rid *RecurrenceID) Decode(w io.Writer) error

func (RecurrenceID) SetRecurrenceID

func (rid RecurrenceID) SetRecurrenceID(params parameter.Container, value types.TimeValue) error

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) Decode added in v0.1.0

func (rr *RecurrenceRule) Decode(w io.Writer) error

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

type RelatedTo struct {
	Parameter parameter.Container
	Value     types.Text
}

RelatedTo is RELATED-TO https://tools.ietf.org/html/rfc5545#section-3.8.4.5

func (*RelatedTo) Decode added in v0.1.0

func (rt *RelatedTo) Decode(w io.Writer) error

func (*RelatedTo) SetRelatedTo

func (rt *RelatedTo) SetRelatedTo(params parameter.Container, value types.Text) error

func (*RelatedTo) Validate added in v0.1.0

func (rt *RelatedTo) Validate() error

type RepeatCount

type RepeatCount struct {
	Parameter parameter.Container
	Value     types.Integer
}

RepeatCount is REPEAT https://tools.ietf.org/html/rfc5545#section-3.8.6.2

func (*RepeatCount) Decode added in v0.1.0

func (rc *RepeatCount) Decode(w io.Writer) error

func (*RepeatCount) SetRepeatCount

func (rc *RepeatCount) SetRepeatCount(params parameter.Container, value types.Integer) error

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) Decode added in v0.1.0

func (rs *RequestStatus) Decode(w io.Writer) error

func (*RequestStatus) SetRequestStatus

func (rs *RequestStatus) SetRequestStatus(params parameter.Container, value types.Text) error

func (*RequestStatus) Update

func (rs *RequestStatus) Update(params parameter.Container, code, desc, exdata types.Text) error

type Resources

type Resources struct {
	Parameter parameter.Container
	Values    []types.Text
}

Resources is RESOURCES https://tools.ietf.org/html/rfc5545#section-3.8.1.10

func (*Resources) Decode added in v0.1.0

func (r *Resources) Decode(w io.Writer) error

func (*Resources) SetResources

func (r *Resources) SetResources(params parameter.Container, values []types.Text) error

func (*Resources) Validate added in v0.1.0

func (r *Resources) Validate() error

type SequenceNumber

type SequenceNumber struct {
	Parameter parameter.Container
	Value     types.Integer // default is 0
}

SequenceNumber is SEQUENCE https://tools.ietf.org/html/rfc5545#section-3.8.7.4

func (*SequenceNumber) Decode added in v0.1.0

func (sn *SequenceNumber) Decode(w io.Writer) error

func (*SequenceNumber) SetSequenceNumber

func (sn *SequenceNumber) SetSequenceNumber(params parameter.Container, value types.Integer) error

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

func (*Status) Decode added in v0.1.0

func (s *Status) Decode(w io.Writer) error

func (*Status) SetStatus

func (s *Status) SetStatus(params parameter.Container, value types.Text, kind component.Type) error

func (*Status) Validate added in v0.1.0

func (s *Status) Validate() error

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

type Summary struct {
	Parameter parameter.Container
	Value     types.Text
}

Summary is SUMMARY used for "VEVENT", "VTODO", "VJOURNAL", or "VALARM" https://tools.ietf.org/html/rfc5545#section-3.8.1.12

func (*Summary) Decode added in v0.1.0

func (s *Summary) Decode(w io.Writer) error

func (*Summary) SetSummary

func (s *Summary) SetSummary(params parameter.Container, value types.Text) error

func (*Summary) Validate added in v0.1.0

func (s *Summary) Validate() error

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

type TimezoneIdentifier struct {
	Parameter parameter.Container
	Value     types.Text
}

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 (tzid *TimezoneIdentifier) SetTimezoneID(params parameter.Container, value types.Text) error

func (*TimezoneIdentifier) Validate added in v0.1.0

func (ti *TimezoneIdentifier) Validate() error

type TimezoneName

type TimezoneName struct {
	Parameter parameter.Container
	Value     types.Text
}

TimezoneName is TZNAME https://tools.ietf.org/html/rfc5545#section-3.8.3.2

func (*TimezoneName) Decoce added in v0.1.0

func (tn *TimezoneName) Decoce(w io.Writer) error

func (*TimezoneName) SetTimezoneName

func (tzn *TimezoneName) SetTimezoneName(params parameter.Container, value types.Text) error

func (*TimezoneName) Validate added in v0.1.0

func (tn *TimezoneName) Validate() error

type TimezoneOffsetFrom

type TimezoneOffsetFrom struct {
	Parameter parameter.Container
	Value     types.UTCOffset
}

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 (tzofrom *TimezoneOffsetFrom) SetTimezoneOffsetFrom(params parameter.Container, value types.UTCOffset) error

func (*TimezoneOffsetFrom) Validate added in v0.1.0

func (tzofrom *TimezoneOffsetFrom) Validate() error

type TimezoneOffsetTo

type TimezoneOffsetTo struct {
	Parameter parameter.Container
	Value     types.UTCOffset
}

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 (tzoto *TimezoneOffsetTo) SetTimezoneOffsetTo(params parameter.Container, value types.UTCOffset) error

func (*TimezoneOffsetTo) Validate added in v0.1.0

func (tzoto *TimezoneOffsetTo) Validate() error

type TimezoneURL

type TimezoneURL struct {
	Parameter parameter.Container
	Value     types.URI
}

TimezoneURL is TZURL https://tools.ietf.org/html/rfc5545#section-3.8.3.5

func (*TimezoneURL) Decoce added in v0.1.0

func (tzurl *TimezoneURL) Decoce(w io.Writer) error

func (*TimezoneURL) SetTimezoneURL

func (tzurl *TimezoneURL) SetTimezoneURL(params parameter.Container, value types.URI) error

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) Decode added in v0.1.0

func (t *Trigger) Decode(w io.Writer) error

func (*Trigger) SetTrigger

func (t *Trigger) SetTrigger(params parameter.Container, value types.TriggerValue) error

func (*Trigger) Validate added in v0.1.0

func (t *Trigger) Validate() error

type UID

type UID struct {
	Parameter parameter.Container
	Value     types.Text
}

UID is UID https://tools.ietf.org/html/rfc5545#section-3.8.4.7

func (*UID) Decode added in v0.1.0

func (u *UID) Decode(w io.Writer) error

func (*UID) SetUID

func (uid *UID) SetUID(params parameter.Container, value types.Text) error

func (*UID) Validate added in v0.1.0

func (u *UID) Validate() error

type URL

type URL struct {
	Parameter parameter.Container
	Value     types.URI
}

URL is URL maybe name will be changed to UniformResourceLocator https://tools.ietf.org/html/rfc5545#section-3.8.4.6

func (*URL) Decode added in v0.1.0

func (u *URL) Decode(w io.Writer) error

func (*URL) SetURL

func (url *URL) SetURL(params parameter.Container, value types.URI) error

func (*URL) Validate added in v0.1.0

func (u *URL) Validate() error

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

type Version struct {
	Parameter parameter.Container
	Min, Max  types.Text
}

Version is VERSION https://tools.ietf.org/html/rfc5545#section-3.7.4

func NewVersion

func NewVersion() *Version

func (*Version) Decode added in v0.1.0

func (v *Version) Decode(w io.Writer) error

func (*Version) SetVersion

func (v *Version) SetVersion(params parameter.Container, value types.Text) error

func (*Version) UpdateVersion

func (v *Version) UpdateVersion(params parameter.Container, min, max types.Text) error

func (*Version) Validate added in v0.1.0

func (v *Version) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL