types

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmpty = fmt.Errorf("empty")

Functions

This section is empty.

Types

type AttachmentValue added in v0.0.2

type AttachmentValue interface {
	fmt.Stringer
	// contains filtered or unexported methods
}

type Binary

type Binary struct {
	Value string
}

Binary is defined in https://tools.ietf.org/html/rfc5545#section-3.3.1 BASE64 encoded string

func NewBinary

func NewBinary(v string) (Binary, error)

func (Binary) String added in v0.1.0

func (b Binary) String() string

type Boolean

type Boolean bool

Boolean is defined in https://tools.ietf.org/html/rfc5545#section-3.3.2

func NewBoolean

func NewBoolean(v string) (Boolean, error)

func (Boolean) String added in v0.1.0

func (b Boolean) String() string

type CalenderUserAddress

type CalenderUserAddress struct {
	URI *url.URL
}

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

type Date time.Time

Date is defined in https://tools.ietf.org/html/rfc5545#section-3.3.4

func NewDate

func NewDate(v string) (Date, error)

func (Date) String added in v0.1.0

func (d Date) String() string

type DateTime

type DateTime time.Time

DateTime is defined in https://tools.ietf.org/html/rfc5545#section-3.3.5

func NewDateTime

func NewDateTime(v, tz string) (DateTime, error)

func (DateTime) String added in v0.1.0

func (dt DateTime) String() string

type Duration

type Duration struct {
	Direction    string
	Week         int64
	Day          int64
	HourDuration time.Duration
}

Duration is defined in https://tools.ietf.org/html/rfc5545#section-3.3.6

func NewDuration

func NewDuration(v string) (Duration, error)

func (Duration) String added in v0.1.0

func (d Duration) String() string

type Float

type Float float64

Float is defined in https://tools.ietf.org/html/rfc5545#section-3.3.7

func NewFloat

func NewFloat(v string) (Float, error)

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

func NewInteger(v string) (Integer, error)

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

func NewPeriod

func NewPeriod(v string) (Period, error)

func (Period) String added in v0.1.0

func (p Period) String() string

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 RecurrenceDateTimeValue interface {
	fmt.Stringer
	// contains filtered or unexported methods
}

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 Text

type Text string

Text is defined in https://tools.ietf.org/html/rfc5545#section-3.3.11

func NewText

func NewText(v string) Text

type Time

type Time time.Time

Time is defined in https://tools.ietf.org/html/rfc5545#section-3.3.12

func NewTime

func NewTime(v, tz string) (Time, error)

func (Time) String added in v0.1.0

func (t Time) String() string

type TimeValue added in v0.0.2

type TimeValue interface {
	fmt.Stringer
	// contains filtered or unexported methods
}

type TriggerValue added in v0.0.2

type TriggerValue interface {
	fmt.Stringer
	// contains filtered or unexported methods
}

type URI

type URI struct {
	URI *url.URL
}

URI is defined in https://tools.ietf.org/html/rfc5545#section-3.3.13

func NewURI

func NewURI(v string) (URI, error)

func (URI) String added in v0.1.0

func (u URI) String() string

type UTCOffset

type UTCOffset struct {
	Direction bool // true for "+"
	Hour      uint64
	Minute    uint64
	Second    uint64
}

UTCOffset is defined in https://tools.ietf.org/html/rfc5545#section-3.3.14

func NewUTCOffset

func NewUTCOffset(v string) (UTCOffset, error)

func (UTCOffset) String added in v0.1.0

func (utco UTCOffset) String() string

type WeekDay

type WeekDay struct {
	Week int64
	Day  WeekDayPattern
}

func (WeekDay) String added in v0.1.0

func (wd WeekDay) String() string

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"
)

Jump to

Keyboard shortcuts

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