SYMBOL INDEX (123 symbols across 19 files) FILE: account.go type Account (line 30) | type Account struct method CacheName (line 99) | func (a *Account) CacheName() string { return "account-" + a.Name + ".... method IconPath (line 102) | func (a *Account) IconPath() string { method Icon (line 107) | func (a *Account) Icon() *aw.Icon { method Authenticator (line 117) | func (a *Account) Authenticator() *Authenticator { method Save (line 126) | func (a *Account) Save() error { method Service (line 135) | func (a *Account) Service() (*calendar.Service, error) { method FetchCalendars (line 154) | func (a *Account) FetchCalendars() error { method FetchEvents (line 195) | func (a *Account) FetchEvents(cal *Calendar, start time.Time) ([]*Even... method QuickAdd (line 261) | func (a *Account) QuickAdd(calendarID string, quick string) error { method handleAPIError (line 279) | func (a *Account) handleAPIError(err error) error { function NewAccount (line 52) | func NewAccount(name string) (*Account, error) { function LoadAccounts (line 68) | func LoadAccounts() ([]*Account, error) { type errorResponse (line 310) | type errorResponse struct type errorAuthentication (line 315) | type errorAuthentication struct method Error (line 322) | func (err errorAuthentication) Error() string { FILE: auth.go constant authServerURL (line 32) | authServerURL = "localhost:61432" constant userEmailScope (line 34) | userEmailScope = "https://www.googleapis.com/auth/userinfo.email" type response (line 40) | type response struct type Authenticator (line 46) | type Authenticator struct method GetClient (line 65) | func (a *Authenticator) GetClient() (*http.Client, error) { method tokenFromWeb (line 146) | func (a *Authenticator) tokenFromWeb(cfg *oauth2.Config) error { method getUserInfo (line 170) | func (a *Authenticator) getUserInfo() error { method openAuthURL (line 229) | func (a *Authenticator) openAuthURL(cfg *oauth2.Config) error { method codeFromLocalServer (line 240) | func (a *Authenticator) codeFromLocalServer() (string, error) { function NewAuthenticator (line 60) | func NewAuthenticator(acc *Account, secret []byte) *Authenticator { FILE: cmd_calendars.go function doListCalendars (line 28) | func doListCalendars() error { function doListWritableCalendars (line 110) | func doListWritableCalendars() error { function allCalendars (line 191) | func allCalendars() ([]*Calendar, error) { function activeCalendarIDs (line 225) | func activeCalendarIDs() (map[string]bool, error) { function activeCalendars (line 250) | func activeCalendars() ([]*Calendar, error) { function writableCalendars (line 283) | func writableCalendars() ([]*Calendar, error) { FILE: cmd_config.go function doConfig (line 23) | func doConfig() error { function doToggle (line 152) | func doToggle() error { function doReauth (line 183) | func doReauth() error { function doLogout (line 205) | func doLogout() error { function doClear (line 260) | func doClear() error { function clearEvents (line 279) | func clearEvents() error { FILE: cmd_dates.go function doDates (line 31) | func doDates() error { function midnight (line 90) | func midnight(t time.Time) time.Time { function parseDate (line 100) | func parseDate(s string) (time.Time, bool) { function relativeDays (line 161) | func relativeDays(t time.Time, names bool) string { function relativeDate (line 203) | func relativeDate(t time.Time) string { FILE: cmd_dates_test.go function TestParseDate (line 33) | func TestParseDate(t *testing.T) { FILE: cmd_events.go function doEvents (line 23) | func doEvents() error { function loadEvents (line 200) | func loadEvents(t time.Time, cal ...*Calendar) ([]*Event, error) { FILE: cmd_open.go function doOpen (line 19) | func doOpen() error { FILE: cmd_quickadd.go function quickAdd (line 16) | func quickAdd() error { function createEvent (line 31) | func createEvent(quick string, calendarID string) error { FILE: cmd_reload.go function doReload (line 12) | func doReload() error { FILE: cmd_server.go constant previewServerURL (line 24) | previewServerURL = "localhost:61433" constant quitAfter (line 25) | quitAfter = 90 * time.Second function previewURL (line 29) | func previewURL(t time.Time, eventID string) string { function doStartServer (line 39) | func doStartServer() error { FILE: cmd_set.go function doSet (line 14) | func doSet() error { FILE: cmd_update.go function doUpdateWorkflow (line 28) | func doUpdateWorkflow() error { function doUpdateCalendars (line 37) | func doUpdateCalendars() error { function doUpdateEvents (line 69) | func doUpdateEvents() error { function clearOldFiles (line 167) | func clearOldFiles() error { FILE: events.go constant gMapsURL (line 18) | gMapsURL = "https://www.google.com/maps/search/?api=1" constant aMapsURL (line 19) | aMapsURL = "http://maps.apple.com/" type Calendar (line 23) | type Calendar struct type CalsByTitle (line 33) | type CalsByTitle method Len (line 35) | func (s CalsByTitle) Len() int { return len(s) } method Less (line 36) | func (s CalsByTitle) Less(i, j int) bool { return s[i].Title < s[j].Ti... method Swap (line 37) | func (s CalsByTitle) Swap(i, j int) { s[i], s[j] = s[j], s[i] } type Event (line 40) | type Event struct method Duration (line 56) | func (e *Event) Duration() time.Duration { return e.End.Sub(e.Start) } method String (line 58) | func (e *Event) String() string { type EventsByStart (line 64) | type EventsByStart method Len (line 66) | func (s EventsByStart) Len() int { return len(s) } method Less (line 67) | func (s EventsByStart) Less(i, j int) bool { return s[i].Start.Before(... method Swap (line 68) | func (s EventsByStart) Swap(i, j int) { s[i], s[j] = s[j], s[i] } function mapURL (line 71) | func mapURL(location string) string { function googleMapsURL (line 81) | func googleMapsURL(location string) string { function appleMapsURL (line 89) | func appleMapsURL(location string) string { FILE: icons.go function init (line 57) | func init() { function ColouredIcon (line 67) | func ColouredIcon(icon *aw.Icon, colour string) *aw.Icon { function download (line 106) | func download(url, path string) error { function generateIcon (line 133) | func generateIcon(src, dest string, c color.RGBA) error { function iconCachePath (line 169) | func iconCachePath(i *aw.Icon, c color.RGBA) string { function ParseHexColour (line 182) | func ParseHexColour(s string) (color.RGBA, error) { function ReloadIcon (line 218) | func ReloadIcon() *aw.Icon { FILE: magefile.go function init (line 30) | func init() { function mod (line 39) | func mod(args ...string) error { function Build (line 53) | func Build() error { function Run (line 75) | func Run() error { function Dist (line 82) | func Dist() error { function Link (line 93) | func Link() error { function Deps (line 105) | func Deps() error { function Clean (line 112) | func Clean() { function cleanDeps (line 117) | func cleanDeps() error { return mod("tidy", "-v") } function cleanDir (line 119) | func cleanDir(name string) error { function CleanIcons (line 138) | func CleanIcons() error { return cleanDir("./icons") } function cleanBuild (line 140) | func cleanBuild() error { return cleanDir("./build") } function cleanMage (line 141) | func cleanMage() error { return sh.Run("mage", "-clean") } FILE: magic.go type calendarMagic (line 17) | type calendarMagic struct method Keyword (line 19) | func (cm *calendarMagic) Keyword() string { return "calendars" } method Description (line 20) | func (cm *calendarMagic) Description() string { return "Activate/deact... method RunText (line 21) | func (cm *calendarMagic) RunText() string { return "Opening calend... method Run (line 22) | func (cm *calendarMagic) Run() error { return aw.NewAlfred().... type loginMagic (line 25) | type loginMagic struct method Keyword (line 27) | func (lm *loginMagic) Keyword() string { return "login" } method Description (line 28) | func (lm *loginMagic) Description() string { return "Add a Google acco... method RunText (line 29) | func (lm *loginMagic) RunText() string { return "Opening Google si... method Run (line 30) | func (lm *loginMagic) Run() error { FILE: main.go constant timeFormat (line 27) | timeFormat = "2006-01-02" constant timeFormatLong (line 28) | timeFormatLong = "Monday, 2 January 2006" constant yellow (line 31) | yellow = "f8ac30" constant repo (line 37) | repo = "deanishe/alfred-gcal" constant helpURL (line 38) | helpURL = "https://github.com/deanishe/alfred-gcal/issues" constant readmeURL (line 39) | readmeURL = "https://github.com/deanishe/alfred-gcal/blob/master/README.md" constant forumURL (line 40) | forumURL = "https://www.alfredforum.com/topic/11016-google-calendar-view/" constant usage (line 43) | usage = ` type options (line 85) | type options struct method MaxAgeCalendar (line 131) | func (opts *options) MaxAgeCalendar() time.Duration { return time.Hour... method MaxAgeEvents (line 133) | func (opts *options) MaxAgeEvents() time.Duration { method ScheduleDuration (line 142) | func (opts *options) ScheduleDuration() time.Duration { function init (line 146) | func init() { function parseFlags (line 156) | func parseFlags() error { function run (line 197) | func run() { function main (line 276) | func main() { FILE: secret.go constant secret (line 23) | secret = `