Documentation
¶
Index ¶
- type ActionType
- type BinaryType
- type BooleanType
- type CalendarUserAddressType
- type ClassificationType
- type ComponentDelimiterType
- type DateTimeFormat
- type DateTimeType
- type DateType
- type DurationType
- type FloatType
- type IntegerType
- type PeriodOfTimeFormat
- type PeriodOfTimeType
- type StatusType
- type TextType
- type TimeFormat
- type TimeTransparencyType
- type TimeType
- type UriType
- type UtcOffsetType
- type ValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType interface {
ValueType
GetValue() registries.ActionRegistry
}
func NewActionValue ¶
func NewActionValue(value registries.ActionRegistry) ActionType
NewActionValue create a new registries.Text type value. See RFC-5545 ref for more info
type BinaryType ¶ added in v0.3.0
func NewBinaryValue ¶
func NewBinaryValue(value string) BinaryType
NewBinaryValue create a new registries.Binary type value. See RFC-5545 ref for more info
type BooleanType ¶ added in v0.3.0
func NewBooleanValue ¶
func NewBooleanValue(value bool) BooleanType
NewBooleanValue create a new registries.Boolean type value. See RFC-5545 ref for more info
type CalendarUserAddressType ¶ added in v0.3.0
func NewCalendarUserAddressValue ¶
func NewCalendarUserAddressValue(value *url.URL) CalendarUserAddressType
NewCalendarUserAddressValue create a new registries.CalAddress type value. See RFC-5545 ref for more info
type ClassificationType ¶
type ClassificationType interface {
ValueType
GetValue() registries.ClassificationRegistry
}
func NewClassificationValue ¶
func NewClassificationValue(value registries.ClassificationRegistry) ClassificationType
NewClassificationValue create a new registries.Text type value. See RFC-5545 ref for more info
type ComponentDelimiterType ¶ added in v0.3.0
type ComponentDelimiterType interface {
ValueType
GetValue() registries.ComponentRegistry
}
func NewComponentDelimiterValue ¶ added in v0.3.0
func NewComponentDelimiterValue(value registries.ComponentRegistry) ComponentDelimiterType
type DateTimeFormat ¶ added in v0.3.0
type DateTimeFormat string
const ( WithLocalTime DateTimeFormat = "WithLocalTime" WithUtcTime DateTimeFormat = "WithUtcTime" )
type DateTimeType ¶ added in v0.3.0
type DateTimeType interface {
ValueType
GetValue() time.Time
GetFormat() DateTimeFormat
}
func NewDateTimeValue ¶
func NewDateTimeValue(value time.Time) DateTimeType
NewDurationValue create a new registries.Duration type value. See RFC-5545 ref for more info
func NewDateTimeValueFromString ¶
func NewDateTimeValueFromString(value string) (DateTimeType, error)
NewDurationValue create a new registries.Duration type value from a string one (ex: 19980119T020000 or 19980119T070000Z). See RFC-5545 ref for more info
func NewDateTimeValueFromStrings ¶ added in v0.3.0
func NewDateTimeValueFromStrings(values []string) ([]DateTimeType, error)
NewDurationValue create a new registries.Duration type value from multiple strings (ex: 19980119T020000,20000119T020000). See RFC-5545 ref for more info
func NewDateTimeValues ¶
func NewDateTimeValues(values []time.Time) []DateTimeType
NewDurationValue create a new registries.Duration type value array. See RFC-5545 ref for more info
type DateType ¶ added in v0.3.0
func NewDateValue ¶
NewDateValue create a new registries.Date type value. See RFC-5545 ref for more info
func NewDateValueFromString ¶
NewDateValueFromString create a new registries.Date type value from string. See RFC-5545 ref for more info
func NewDateValues ¶
NewDateValues create new registries.Date type values. See RFC-5545 ref for more info
func NewDateValuesFromString ¶
NewDateValuesFromString create new registries.Date type values from string. See RFC-5545 ref for more info
type DurationType ¶ added in v0.3.0
func NewDurationValue ¶
func NewDurationValue(value time.Duration) DurationType
NewDurationValue create a new registries.Duration type value. See RFC-5545 ref for more info
func NewDurationValueFromString ¶ added in v0.3.0
func NewDurationValueFromString(value string) (DurationType, error)
NewDurationValue create a new registries.Duration type value from a string. See RFC-5545 ref for more info
type FloatType ¶ added in v0.3.0
func NewFloatValue ¶
NewFloatValue create a new registries.Float type value. See RFC-5545 ref for more info
func NewFloatValueFromString ¶ added in v0.3.0
NewFloatValueFromString create a new registries.Float type value from a string. See RFC-5545 ref for more info
type IntegerType ¶ added in v0.3.0
func NewIntegerValue ¶
func NewIntegerValue(value int32) IntegerType
NewIntegerValue create a new registries.Integer type value. See RFC-5545 ref for more info
func NewIntegerValues ¶
func NewIntegerValues(values []int32) []IntegerType
NewIntegerValues create a new registries.Integer type values. See RFC-5545 ref for more info
type PeriodOfTimeFormat ¶ added in v0.3.0
type PeriodOfTimeFormat string
const ( ImplicitPeriodOfTime PeriodOfTimeFormat = "ImplicitPeriodOfTime" ExplicitPeriodOfTime PeriodOfTimeFormat = "ExplicitPeriodOfTime" )
type PeriodOfTimeType ¶ added in v0.3.0
type PeriodOfTimeType interface {
ValueType
GetValue() (from, to time.Time)
GetFormat() PeriodOfTimeFormat
}
func NewExplicitPeriodOfTimeValue ¶ added in v0.3.1
func NewExplicitPeriodOfTimeValue( fromValue time.Time, toValue time.Time, ) PeriodOfTimeType
NewExplicitPeriodOfTimeValue create a new registries.PeriodOfTime type value used for registries.FreeBusyTimeProp. See RFC-5545 ref for more info
func NewImplicitPeriodOfTimeValue ¶ added in v0.3.1
func NewImplicitPeriodOfTimeValue( fromValue time.Time, toValue time.Duration, ) PeriodOfTimeType
NewImplicitPeriodOfTimeValue create a new registries.PeriodOfTime type value. See RFC-5545 ref for more info
func NewPeriodOfTimeValueFromString ¶ added in v0.3.0
func NewPeriodOfTimeValueFromString(value string) (PeriodOfTimeType, error)
NewPeriodOfTimeValue create a new registries.PeriodOfTime type value. See RFC-5545 ref for more info
type StatusType ¶
type StatusType interface {
ValueType
GetValue() registries.ParticipantStatusRegistry
}
func NewStatusValue ¶
func NewStatusValue(value registries.ParticipantStatusRegistry) StatusType
type TextType ¶ added in v0.3.0
type TextType interface {
ValueType
}
func NewTextValue ¶
NewTextValue create a new registries.Text type value. See RFC-5545 ref for more info
func NewTextValues ¶
NewTextValues create a new registries.Text type values. See RFC-5545 ref for more info
type TimeFormat ¶ added in v0.3.0
type TimeFormat string
const ( TimeWithLocalTime TimeFormat = "TimeWithLocalTime" TimeWithUtcTime TimeFormat = "TimeWithUtcTime" )
type TimeTransparencyType ¶
type TimeTransparencyType interface {
ValueType
GetValue() registries.TimeTransparencyRegistry
}
func NewTimeTransparencyValue ¶
func NewTimeTransparencyValue(value registries.TimeTransparencyRegistry) TimeTransparencyType
NewTimeTransparencyValue create a new registries.TimeTransparencyRegistry type value. See RFC-5545 ref for more info
func NewTimeTransparencyValueFromString ¶ added in v0.3.0
func NewTimeTransparencyValueFromString(value string) TimeTransparencyType
NewTimeTransparencyValueFromString create a new registries.TimeTransparencyRegistry type value from a string. See RFC-5545 ref for more info
type TimeType ¶ added in v0.3.0
type TimeType interface {
ValueType
GetValue() time.Time
GetFormat() TimeFormat
}
func NewTimeValue ¶
NewTimeValue create a new registries.Time type value. See RFC-5545 ref for more info
func NewTimeValueFromString ¶ added in v0.3.0
NewTimeValueFromString create a new registries.Time type value from string. See RFC-5545 ref for more info
func NewTimeValues ¶ added in v0.3.0
NewTimeValues create a new registries.Time type value array. See RFC-5545 ref for more info
func NewTimeValuesFromString ¶ added in v0.3.0
NewTimeValuesFromString create new registries.Time type values from string. See RFC-5545 ref for more info
type UriType ¶ added in v0.3.0
func NewUriValue ¶
NewUriValue create a new registries.Uri type value. See RFC-5545 ref for more info
func NewUriValueFromString ¶ added in v0.3.0
NewUriValue create a new registries.Uri type value. See RFC-5545 ref for more info
type UtcOffsetType ¶ added in v0.3.0
func NewUtcOffsetValue ¶
func NewUtcOffsetValue(value int) UtcOffsetType
NewTextValue create a new registries.UTCOffset type value. See RFC-5545 ref for more info
func NewUtcOffsetValueFromString ¶ added in v0.3.0
func NewUtcOffsetValueFromString(value string) UtcOffsetType
NewTextValue create a new registries.UTCOffset type value from string. See RFC-5545 ref for more info
Source Files
¶
- action_type.go
- binary_type.go
- boolean_type.go
- calendar_user_address_type.go
- classification_type.go
- component_delimiter_type.go
- date_time_type.go
- date_type.go
- duration_type.go
- float_type.go
- integer_type.go
- period_of_time_type.go
- status_type.go
- text_type.go
- time_transparency_type.go
- time_type.go
- uri_type.go
- utc_offset_type.go
- value_type.go