Documentation ¶
Index ¶
- type Calendar
- func (c *Calendar) CalendarList(max ...int64) (*CalendarList, error)
- func (c *Calendar) CalendarListWithOption(opt CalendarListOption) (*CalendarList, error)
- func (c *Calendar) Errorf(format string, vv ...interface{})
- func (c *Calendar) EventList(calendarID string, max ...int64) (*EventList, error)
- func (c *Calendar) EventListWithOption(calendarID string, opt EventListOption) (*EventList, error)
- func (c *Calendar) SetLogger(logger log.Logger)
- type CalendarEntry
- type CalendarList
- type CalendarListOption
- type CalendarListResponse
- type CalendarNotification
- type ConferenceProperties
- type Event
- type EventList
- type EventListOption
- type EventListResponse
- type EventReminder
- type EventReminders
- type EventSource
- type NotificationSettings
- type OrderBy
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calendar ¶
type Calendar struct {
// contains filtered or unexported fields
}
Calendar repesents Google Calendar API client.
func (*Calendar) CalendarList ¶ added in v0.8.3
func (c *Calendar) CalendarList(max ...int64) (*CalendarList, error)
CalendarList gets calendar list.
func (*Calendar) CalendarListWithOption ¶ added in v0.8.3
func (c *Calendar) CalendarListWithOption(opt CalendarListOption) (*CalendarList, error)
CalendarListWithOption gets calendar list with option.
func (*Calendar) EventListWithOption ¶ added in v0.7.2
func (c *Calendar) EventListWithOption(calendarID string, opt EventListOption) (*EventList, error)
EventListWithOption gets calendarID's events with option.
type CalendarEntry ¶ added in v0.8.3
type CalendarEntry struct { ID string ETag string Summary string SummaryOverride string Description string Kind string Location string AccessRole string BackgroundColor string ColorID string ForegroundColor string TimeZone string Primary bool Selected bool Deleted bool Hidden bool DefaultReminders []EventReminder ConferenceProperties ConferenceProperties NotificationSettings NotificationSettings }
CalendarEntry contains calendar information on Google Calendar.
func NewCalendarEntries ¶ added in v0.8.3
func NewCalendarEntries(list []*SDK.CalendarListEntry) []CalendarEntry
func NewCalendarEntry ¶ added in v0.8.3
func NewCalendarEntry(e *SDK.CalendarListEntry) CalendarEntry
type CalendarList ¶ added in v0.8.3
type CalendarList struct { List []CalendarEntry ETag string Kind string NextPageToken string NextSyncToken string }
CalendarList contains multiple calendars.
type CalendarListOption ¶ added in v0.8.3
type CalendarListOption struct { MaxResults int64 MinAccessRole string PageToken string SyncToken string ShowDeleted bool ShowHidden bool }
CalendarListOption contains option for calendar_list.list operation.
type CalendarListResponse ¶ added in v0.8.3
type CalendarListResponse struct {
*SDK.CalendarList
}
type CalendarNotification ¶ added in v0.8.3
type ConferenceProperties ¶ added in v0.8.3
type ConferenceProperties struct {
AllowedConferenceSolutionTypes []string
}
type Event ¶
type Event struct { ID string Status string Summary string Description string Location string HTMLLink string HangoutLink string ICalUID string StartTime time.Time EndTime time.Time IsAllDayEvent bool Attendees []User Creator User Organizer User Transparent bool Visibility string Locked bool PrivateCopy bool Sequence int64 Kind string Source EventSource Reminders EventReminders Created time.Time Updated time.Time }
Event contains event information on Google Calendar.
func (Event) IsStatusConfirmed ¶ added in v0.7.1
type EventList ¶
type EventList struct {
List []Event
}
EventList contains multiple calendar events.
type EventListOption ¶
type EventListOption struct { MaxResults int64 OrderBy OrderBy PageToken string ShowDeleted bool ShowHiddenInvitations bool SingleEvents bool TimeMax time.Time TimeMin time.Time }
EventListOption contains option for event.list operation.
func (EventListOption) GetTimeMax ¶
func (o EventListOption) GetTimeMax() string
func (EventListOption) GetTimeMin ¶
func (o EventListOption) GetTimeMin() string
type EventListResponse ¶
type EventReminder ¶
type EventReminders ¶
type EventReminders struct { Overrides []EventReminder UseDefault bool }
type EventSource ¶
type NotificationSettings ¶ added in v0.8.3
type NotificationSettings struct {
Notifications []CalendarNotification
}
Click to show internal directories.
Click to hide internal directories.