Documentation
¶
Index ¶
Constants ¶
View Source
const ( StrictModeFailFeed = iota StrictModeFailAttribute StrictModeFailEvent )
View Source
const ( DuplicateModeFailStrict = iota DuplicateModeKeepFirst DuplicateModeKeepLast )
View Source
const ( ContextRoot = iota ContextEvent ContextUnknown )
View Source
const YmdHis = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attachment ¶
type DuplicateAttributeError ¶ added in v0.9.1
type DuplicateAttributeError struct {
Key, Value string
}
func NewDuplicateAttribute ¶ added in v0.9.1
func NewDuplicateAttribute(k, v string) DuplicateAttributeError
func (DuplicateAttributeError) Error ¶ added in v0.9.1
func (err DuplicateAttributeError) Error() string
type DuplicateParams ¶ added in v0.9.1
type DuplicateParams struct {
Mode int
}
type Event ¶
type Event struct {
Uid string
Summary string
Description string
Categories []string
Start *time.Time
RawStart RawDate
End *time.Time
RawEnd RawDate
Duration *time.Duration
Stamp *time.Time
Created *time.Time
LastModified *time.Time
Location string
Geo *Geo
URL string
Status string
Organizer *Organizer
Attendees []Attendee
Attachments []Attachment
IsRecurring bool
RecurrenceID string
RecurrenceRule map[string]string
ExcludeDates []time.Time
Sequence int
CustomAttributes map[string]string
Valid bool
Comment string
Class string
// contains filtered or unexported fields
}
type Gocal ¶
type Gocal struct {
Events []Event
SkipBounds bool
Strict StrictParams
Duplicate DuplicateParams
Start *time.Time
End *time.Time
Method string
AllDayEventsTZ *time.Location
// contains filtered or unexported fields
}
func (*Gocal) ExpandRecurringEvent ¶
func (*Gocal) IsRecurringInstanceOverriden ¶
type StrictParams ¶ added in v0.6.0
type StrictParams struct {
Mode int
}
Click to show internal directories.
Click to hide internal directories.