Documentation ¶
Index ¶
- type Event
- type EventDays
- type EventsMask
- type GcalService
- type GoogleCalendar
- func (c *GoogleCalendar) GetCalendarDays(id string, timeMin, timeMax time.Time) (out []time.Time, err error)
- func (c *GoogleCalendar) GetCalendarEventDays(id string, timeMin, timeMax time.Time) (out EventDays, err error)
- func (c *GoogleCalendar) GetCalendarEventMask(id string, timeMin, timeMax time.Time) (out EventsMask, err error)
- func (c *GoogleCalendar) GetCalendarEvents(id string, timeMin, timeMax time.Time) (out []*Event, err error)
- func (c *GoogleCalendar) GetYearCalendarEvents(id string, year int) (out []*Event, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventsMask ¶
type GcalService ¶
type GoogleCalendar ¶
type GoogleCalendar struct {
// contains filtered or unexported fields
}
func NewGoogleCalendar ¶
func NewGoogleCalendar() (cal *GoogleCalendar, err error)
func NewGoogleCalendarFromService ¶
func NewGoogleCalendarFromService(srv GcalService) (cal *GoogleCalendar)
NewGoogleCalendarFromService used to give the calendar parser a different Google Calendar endpoint. Actually used for mockups.
func (*GoogleCalendar) GetCalendarDays ¶
func (c *GoogleCalendar) GetCalendarDays(id string, timeMin, timeMax time.Time) (out []time.Time, err error)
GetCalendarDays returns a list of all days with an event in the calendar.
func (*GoogleCalendar) GetCalendarEventDays ¶
func (c *GoogleCalendar) GetCalendarEventDays(id string, timeMin, timeMax time.Time) (out EventDays, err error)
GetCalendarEventDays returns a map that given a date, returns the event type (La, Lb...) that day belongs to.
func (*GoogleCalendar) GetCalendarEventMask ¶
func (c *GoogleCalendar) GetCalendarEventMask(id string, timeMin, timeMax time.Time) (out EventsMask, err error)
GetCalendarEventMask returns a mask that given a day returns true if has an event.
func (*GoogleCalendar) GetCalendarEvents ¶
func (c *GoogleCalendar) GetCalendarEvents(id string, timeMin, timeMax time.Time) (out []*Event, err error)
GetCalendarEvents returns a list of all events in the calendar.
func (*GoogleCalendar) GetYearCalendarEvents ¶
func (c *GoogleCalendar) GetYearCalendarEvents(id string, year int) (out []*Event, err error)
Click to show internal directories.
Click to hide internal directories.