Documentation ¶
Overview ¶
Package zoom provides a way to fetch the next Zoom meeting in your Google calendar.
Index ¶
- func GoogleCalendarAuthorizationURL(provider config.Provider) (string, error)
- func HandleGoogleCalendarAuthorization(provider config.Provider, authCode string) error
- func HumanizedStartTime(event *calendar.Event) string
- func IsMeetingSoon(event *calendar.Event) bool
- func MeetingStartTime(event *calendar.Event) (time.Time, error)
- func MeetingSummary(event *calendar.Event) string
- func MeetingURLFromEvent(event *calendar.Event) (*url.URL, bool)
- func NewGoogleCalendarService(provider config.Provider) (*calendar.Service, error)
- func NewGoogleClient(provider config.Provider) (*http.Client, error)
- func NextEvent(service *calendar.Service) (*calendar.Event, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoogleCalendarAuthorizationURL ¶
GoogleCalendarAuthorizationURL returns the authorization URL for the service configured in the provider.
func HandleGoogleCalendarAuthorization ¶
HandleGoogleCalendarAuthorization takes an auth code and generates the necessary token and stores it on the provider.
func HumanizedStartTime ¶
HumanizedStartTime converts the event's start time to a human-friendly statement.
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.
func MeetingSummary ¶ added in v0.2.0
MeetingSummary generates a one-line summary of the meeting as a string.
func MeetingURLFromEvent ¶
MeetingURLFromEvent returns a URL if the event is a Zoom meeting.
func NewGoogleCalendarService ¶
NewGoogleCalendarService creates a new Google Calendar service with the credentials in the provider.
func NewGoogleClient ¶
NewGoogleClient creates a new client using the token from the given provider.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
zoom
Command zoom prints your next Google Calendar event and opens Zoom if the meeting is a zoom meeting.
|
Command zoom prints your next Google Calendar event and opens Zoom if the meeting is a zoom meeting. |
Package config provides methods for fetching and storing configuration.
|
Package config provides methods for fetching and storing configuration. |