Documentation
¶
Overview ¶
Package calendar registers handlers of iCalendars, calendars of events and tasks, which return their events, which are searched for by when and where they are, a description of them in words, and their image as artwork
Index ¶
Constants ¶
const (
// Namespace is the namespace of the events of a calendar
Namespace = "ical"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
UID string `json:"uid,omitempty"`
Kind string `json:"kind"` // event, or task
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Location string `json:"location,omitempty"`
Start string `json:"start,omitempty"`
End string `json:"end,omitempty"`
Due string `json:"due,omitempty"` // when a task is due, as a date or an instant
AllDay bool `json:"all_day,omitempty"`
TZ string `json:"tz,omitempty"` // the zone of a timed event, or UTC
NoYear bool `json:"no_year,omitempty"` // a yearly event whose first year isn't known, such as a birthday
RRule string `json:"rrule,omitempty"`
ExDate []string `json:"exdate,omitempty"`
RecurrenceID string `json:"recurrence_id,omitempty"`
URL string `json:"url,omitempty"`
Status string `json:"status,omitempty"`
Organizer string `json:"organizer,omitempty"`
Attendees []string `json:"attendees,omitempty"`
Categories []string `json:"categories,omitempty"`
// contains filtered or unexported fields
}
Event is an event, or a task, of an iCalendar, which is stored as ical:event. Its start and end are dates, as 2006-01-02, when it's all day, or instants in UTC, as RFC 3339, when it's timed, where the end is exclusive. A timed event in a zone is converted to UTC with its zone, and one without a zone, or in a zone which isn't known, is treated as UTC, and has no zone. A repeating event has its rule and the starts it excludes, as they're written, and an occurrence of it which is changed has the start it replaces as its recurrence ID. A task has when it's due.