Documentation ¶
Index ¶
- Constants
- func FindMeetings(c *utils.Config) (calendar.MeetItems, error)
- func GRPCServer(ctx context.Context, config *utils.Config, serverReady chan<- struct{})
- func GetTasks(c *utils.Config) (tasks.SequentialTasks, error)
- func PruneTasks(tsks tasks.SequentialTasks) tasks.SequentialTasks
- func TaskWrapper(c calendar.MeetItems) tasks.SequentialTasks
- func UpdateCronMeetings(ctx context.Context, cron *tasks.Cron)
- type MeetTaskImpl
- type MeetTasks
Constants ¶
View Source
const MEETING_FETCH_DELTA = 30
support for a magic number in seconds
Variables ¶
This section is empty.
Functions ¶
func FindMeetings ¶
findMeetings is invoked via a go-routine which periodically polls the calender to update the meetings for the day.
func GRPCServer ¶
GRPCServer is launched via a go routine
func GetTasks ¶
func GetTasks(c *utils.Config) (tasks.SequentialTasks, error)
common code to getTasks
func PruneTasks ¶
func PruneTasks(tsks tasks.SequentialTasks) tasks.SequentialTasks
TODO: think of how to do this more efficiently without copies just to know
func TaskWrapper ¶
func TaskWrapper(c calendar.MeetItems) tasks.SequentialTasks
convert the meeting items to meeting tasks
Types ¶
type MeetTaskImpl ¶
'extend' a meetitem
func (*MeetTaskImpl) Execute ¶
func (m *MeetTaskImpl) Execute(config *utils.Config) error
Run the current task from the cron package
func (*MeetTaskImpl) Name ¶
func (m *MeetTaskImpl) Name() string
implement the Interface requried for Cron
func (*MeetTaskImpl) String ¶
func (m *MeetTaskImpl) String() string
Click to show internal directories.
Click to hide internal directories.