Documentation ¶
Index ¶
- func EndTime(e *calendar.Event) time.Time
- func FirstEvent(events ...*calendar.Event) *calendar.Event
- func StartTime(e *calendar.Event) time.Time
- type Calendar
- func (cal *Calendar) AddEvent(creator, title, description string, start time.Time, duration time.Duration) error
- func (cal *Calendar) CalendarIDs() []string
- func (cal *Calendar) CalendarIDsMatching(query string) []string
- func (cal *Calendar) List() []string
- func (cal *Calendar) OngoingEvents() ([]*calendar.Event, error)
- func (cal *Calendar) Query(query string, amount int64) ([]*calendar.Event, error)
- func (cal *Calendar) QueryCalendarSingle(query, calID string, mods ...func(c *calendar.EventsListCall)) (*calendar.Event, error)
- func (cal *Calendar) QueryCalendarTitles(query string) (*calendar.Event, error)
- func (cal *Calendar) QueryCalendars(query string, mods ...func(c *calendar.EventsListCall)) ([]*calendar.Event, error)
- func (cal *Calendar) Refresh()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstEvent ¶
func FirstEvent(events ...*calendar.Event) *calendar.Event
Types ¶
type Calendar ¶
func NewCalendar ¶
func (*Calendar) CalendarIDs ¶
func (*Calendar) CalendarIDsMatching ¶
func (*Calendar) OngoingEvents ¶
func (*Calendar) Query ¶
returns a list of all events that are ongoing or happenign in the future, sorted by starting time
func (*Calendar) QueryCalendarSingle ¶
func (*Calendar) QueryCalendarTitles ¶
func (*Calendar) QueryCalendars ¶
Click to show internal directories.
Click to hide internal directories.