alfred

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCalendarID

func GetCalendarID(wf *aw.Workflow) string

func GetClientID

func GetClientID(wf *aw.Workflow) string

func GetClientSecret

func GetClientSecret(wf *aw.Workflow) string

func GetToken

func GetToken(wf *aw.Workflow) (*oauth2.Token, error)

func RemoveToken

func RemoveToken(wf *aw.Workflow) error

func SetCalendarID

func SetCalendarID(wf *aw.Workflow, id string) error

func SetToken

func SetToken(wf *aw.Workflow, token string) error

func StoreOngoingTasks

func StoreOngoingTasks(wf *aw.Workflow, tasks []Task) error

Types

type Task

type Task struct {
	ID          string    `json:"id"`
	Description string    `json:"description"`
	Start       time.Time `json:"start"`
}

func LoadOngoingTasks

func LoadOngoingTasks(wf *aw.Workflow) ([]Task, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL