Documentation ¶
Index ¶
Constants ¶
View Source
const (
GOOGLE = "google"
)
Our appliance types
Variables ¶
This section is empty.
Functions ¶
func IsMeetingSoon ¶
IsMeetingSoon returns true if the meeting is less than 5 minutes from now.
func MeetingStartTime ¶
MeetingStartTime returns the calendar event's start time.
Types ¶
type GoogleCal ¶
GoogleCal - Structure to hold stuff
func (*GoogleCal) GetAuthURL ¶
GetAuthURL - Return the AuthURL
type MeetingEvent ¶
type MeetingEvent struct { Description string `json:"description"` Start time.Time `json:"start"` End time.Time `json:"end"` MeetingProvider string `json:"meetingprovider"` MeetingLink url.URL `json:"meetinglink"` IsMeetingSoon bool `json:"ismeetingsoon"` MeetingResponse string `json:"meetingresponse"` }
MeetingEvent - Structure that we care about returning
type Provider ¶
type Provider interface { GetClient() (bool, error) GetEvents(num int64, attendee string) ([]MeetingEvent, error) GetAuthURL() string GetToken() (*oauth2.Token, error) }
Provider = The main interface used to describe appliances
func GetProvider ¶
GetProvider - Function to create the appliances
Click to show internal directories.
Click to hide internal directories.