Versions in this module Expand all Collapse all v0 v0.7.1 May 18, 2022 Changes in this version + const UserEventHandlerCronSpec + const UserEventUpdaterCronSpec + type Calendar struct + func NewCalendarService(logger *util.Logger, plugin plugin.API, serverUrl string, ...) *Calendar + func (c *Calendar) FindCalendars(userId string) ([]caldav.Calendar, error) + func (c *Calendar) GetCalendarHomeSet(userId string) (string, error) + func (c *Calendar) GetTodayDateTimes(userId string) (time.Time, time.Time) + func (c *Calendar) LoadCalendar(userId string) ([]dto.Event, error) + func (c *Calendar) LoadCalendarUpdates(userId string) ([]dto.Event, []dto.Event) + func (c *Calendar) LoadEvents(userId string, start time.Time, end time.Time) ([]dto.Event, error) + func (c *Calendar) SortEvents(events []dto.Event) + type Scheduler struct + func NewSchedulerService(logger *util.Logger, plugin plugin.API, workspace *Workspace, user *User) *Scheduler + func (s *Scheduler) AddCronJobs(userId string) + func (s *Scheduler) DeleteCronJobs(userId string) + func (s *Scheduler) InitCronJobs() + func (s *Scheduler) StopCronJobs() + type Sender struct + func NewSenderService(manifestId string, botId string, logger *util.Logger, plugin plugin.API, ...) *Sender + func (s *Sender) OpenSettingsDialog(triggerId string, rootId string, calendars []caldav.Calendar, ...) error + func (s *Sender) SendBotDMPost(userId string, message string) + func (s *Sender) SendEvent(userId string, title string, event dto.Event) + func (s *Sender) SendEvents(userId string, title string, events []dto.Event) + func (s *Sender) SendWelcomePost(userId string) + type User struct + func NewUserService(logger *util.Logger, plugin plugin.API, supportedUserCustomStatus bool, ...) *User + func (u *User) Connect(userId string, triggerId string, rootId string, credentials dto.Credentials) + func (u *User) IsUserExist(userId string) bool + func (u *User) LoadEventUpdates(userId string) + func (u *User) Settings(userId string, triggerId string, rootId string) + func (u *User) UserEventsHandler(userId string) + type Workspace struct + func NewWorkspaceService(workspaceRepo *repository.WorkspaceRepo) *Workspace + func (w *Workspace) AddUser(userId string) + func (w *Workspace) DeleteUser(userId string) + func (w *Workspace) GetUserIds() map[string]bool