Documentation
¶
Index ¶
- type Contact
- type GCalendarAPI
- func (gcalAPI GCalendarAPI) ClearAllEvents(eventIDs []string) error
- func (gcalAPI GCalendarAPI) CreateEvent(contact, startTime, endTime, recurrence string) (string, error)
- func (gcalAPI GCalendarAPI) CreateEvents(groupContacts []Contact, slotStartTime, slotEndTime, eventRecurrence string) ([]string, error)
- type GCalendarAPIInterface
- type GCalendarAPIStub
- func (gcalAPI GCalendarAPIStub) ClearAllEvents(eventIDs []string) error
- func (gcalAPI GCalendarAPIStub) CreateEvent(contact, startTime, endTime, recurrence string) (string, error)
- func (gcalAPI GCalendarAPIStub) CreateEvents(groupContacts []Contact, slotStartTime, slotEndTime, eventRecurrence string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCalendarAPI ¶ added in v0.1.5
type GCalendarAPI struct {
// contains filtered or unexported fields
}
func NewGoogleCalendarAPI ¶
func NewGoogleCalendarAPI(credentialsPath, calendarEmail string) (*GCalendarAPI, error)
func (GCalendarAPI) ClearAllEvents ¶ added in v0.1.5
func (gcalAPI GCalendarAPI) ClearAllEvents(eventIDs []string) error
func (GCalendarAPI) CreateEvent ¶ added in v0.1.5
func (gcalAPI GCalendarAPI) CreateEvent(contact, startTime, endTime, recurrence string) (string, error)
func (GCalendarAPI) CreateEvents ¶ added in v0.1.5
func (gcalAPI GCalendarAPI) CreateEvents( groupContacts []Contact, slotStartTime, slotEndTime, eventRecurrence string) ([]string, error)
type GCalendarAPIInterface ¶ added in v0.1.5
type GCalendarAPIInterface interface {
// CreateEvents creates google calendar events for the given contacts and returns the eventIDs and error(if any)
CreateEvents(
groupContacts []Contact,
slotStartTime,
slotEndTime,
eventRecurrence string) ([]string, error)
// CreateEvent creates a google calendar event and returns the event ID
CreateEvent(contact, startTime, endTime, recurrence string) (string, error)
// ClearAllEvents deletes all google calendar events for eventIDs
ClearAllEvents(eventIDs []string) error
}
type GCalendarAPIStub ¶ added in v0.1.5
type GCalendarAPIStub struct {
CreatedEventsID []string
CreatedEventID string
CreatedEventsError error
CreatedEventError error
ClearAllEventsError error
}
func (GCalendarAPIStub) ClearAllEvents ¶ added in v0.1.5
func (gcalAPI GCalendarAPIStub) ClearAllEvents(eventIDs []string) error
func (GCalendarAPIStub) CreateEvent ¶ added in v0.1.5
func (gcalAPI GCalendarAPIStub) CreateEvent(contact, startTime, endTime, recurrence string) (string, error)
func (GCalendarAPIStub) CreateEvents ¶ added in v0.1.5
func (gcalAPI GCalendarAPIStub) CreateEvents( groupContacts []Contact, slotStartTime, slotEndTime, eventRecurrence string) ([]string, error)
Click to show internal directories.
Click to hide internal directories.