Documentation
¶
Index ¶
- Variables
- type AttachmentValue
- type Binary
- type Boolean
- type CalenderUserAddress
- type Date
- type DateTime
- type Duration
- type Float
- type FrequencyPattern
- type Integer
- type Period
- type PeriodType
- type RecurrenceDateTimeValue
- type RecurrenceRule
- type Text
- type Time
- type TimeValue
- type TriggerValue
- type URI
- type UTCOffset
- type WeekDay
- type WeekDayPattern
Constants ¶
This section is empty.
Variables ¶
var ErrEmpty = fmt.Errorf("empty")
Functions ¶
This section is empty.
Types ¶
type AttachmentValue ¶ added in v0.0.2
type Binary ¶
type Binary struct {
Value string
}
Binary is defined in https://tools.ietf.org/html/rfc5545#section-3.3.1 BASE64 encoded string
type Boolean ¶
type Boolean bool
Boolean is defined in https://tools.ietf.org/html/rfc5545#section-3.3.2
func NewBoolean ¶
type CalenderUserAddress ¶
CalenderUserAddress is defined in https://tools.ietf.org/html/rfc5545#section-3.3.3
func NewCalenderUserAddress ¶
func NewCalenderUserAddress(v string) (CalenderUserAddress, error)
func (CalenderUserAddress) String ¶ added in v0.1.0
func (cua CalenderUserAddress) String() string
type Date ¶
Date is defined in https://tools.ietf.org/html/rfc5545#section-3.3.4
type DateTime ¶
DateTime is defined in https://tools.ietf.org/html/rfc5545#section-3.3.5
func NewDateTime ¶
type Duration ¶
Duration is defined in https://tools.ietf.org/html/rfc5545#section-3.3.6
func NewDuration ¶
type Float ¶
type Float float64
Float is defined in https://tools.ietf.org/html/rfc5545#section-3.3.7
type FrequencyPattern ¶
type FrequencyPattern string
const ( FrequencyPatternInvalid FrequencyPattern = "" FrequencyPatternSecondly FrequencyPattern = "SECONDLY" FrequencyPatternMinutely FrequencyPattern = "MINUTELY" FrequencyPatternHourly FrequencyPattern = "HOURLY" FrequencyPatternDaily FrequencyPattern = "DAILY" FrequencyPatternWeekly FrequencyPattern = "WEEKLY" FrequencyPatternMonthly FrequencyPattern = "MONTHLY" FrequencyPatternYearly FrequencyPattern = "YEARLY" )
type Integer ¶
type Integer int64
Integer is defined in https://tools.ietf.org/html/rfc5545#section-3.3.8
func NewInteger ¶
type Period ¶
type Period struct { Start DateTime Type PeriodType // "Explicit" or "Start", "Explicit" has end time, "Start" has duration End DateTime Range Duration }
Period is defined in https://tools.ietf.org/html/rfc5545#section-3.3.9 DateTime/DateTime or DateTime/Duration
type PeriodType ¶ added in v0.1.0
type PeriodType string
const ( PeriodTypeInvalid PeriodType = "" PeriodTypeExplicit PeriodType = "Explicit" PeriodTypeStart PeriodType = "Start" )
type RecurrenceDateTimeValue ¶ added in v0.0.2
type RecurrenceRule ¶
type RecurrenceRule struct { Frequency FrequencyPattern EndDate TimeValue // UNTIL Count int64 Interval int64 BySecond []int64 ByMinute []int64 ByHour []int64 ByDay []WeekDay ByMonthDay []int64 ByYearDay []int64 ByWeekNo []int64 ByMonth []int64 BySetPos []int64 WeekDay WeekDayPattern }
RecurrenceRule is defined in https://tools.ietf.org/html/rfc5545#section-3.3.10
func NewRecurrenceRule ¶
func NewRecurrenceRule(v string) (RecurrenceRule, error)
func (RecurrenceRule) String ¶ added in v0.1.0
func (rr RecurrenceRule) String() string
type Time ¶
Time is defined in https://tools.ietf.org/html/rfc5545#section-3.3.12
type TriggerValue ¶ added in v0.0.2
type URI ¶
URI is defined in https://tools.ietf.org/html/rfc5545#section-3.3.13
type UTCOffset ¶
UTCOffset is defined in https://tools.ietf.org/html/rfc5545#section-3.3.14
func NewUTCOffset ¶
type WeekDay ¶
type WeekDay struct { Week int64 Day WeekDayPattern }
type WeekDayPattern ¶
type WeekDayPattern string
const ( WeekDayPatternInvalid WeekDayPattern = "" WeekDayPatternSunday WeekDayPattern = "SU" WeekDayPatternMonday WeekDayPattern = "MO" WeekDayPatternTuesday WeekDayPattern = "TU" WeekDayPatternWednesday WeekDayPattern = "WE" WeekDayPatternThursday WeekDayPattern = "TH" WeekDayPatternFriday WeekDayPattern = "FR" WeekDayPatternSaturday WeekDayPattern = "SA" )