Documentation ¶
Index ¶
- Constants
- type 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
- type 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
- 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
Constants ¶
View Source
const ( // UserEventHandlerCronSpec @every 1m UserEventHandlerCronSpec = "CRON_TZ=UTC */1 * * * *" // UserEventUpdaterCronSpec @every 10m UserEventUpdaterCronSpec = "CRON_TZ=UTC */10 * * * *" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calendar ¶
type Calendar struct {
// contains filtered or unexported fields
}
func NewCalendarService ¶
func NewCalendarService( logger *util.Logger, plugin plugin.API, serverUrl string, credentialsRepo *repository.CredentialsRepo) *Calendar
func (*Calendar) FindCalendars ¶
func (*Calendar) GetCalendarHomeSet ¶
func (*Calendar) GetTodayDateTimes ¶
func (*Calendar) LoadCalendarUpdates ¶
func (*Calendar) LoadEvents ¶
func (*Calendar) SortEvents ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewSchedulerService ¶
func (*Scheduler) AddCronJobs ¶
func (*Scheduler) DeleteCronJobs ¶
func (*Scheduler) InitCronJobs ¶
func (s *Scheduler) InitCronJobs()
func (*Scheduler) StopCronJobs ¶
func (s *Scheduler) StopCronJobs()
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
func NewSenderService ¶
func (*Sender) OpenSettingsDialog ¶
func (*Sender) SendBotDMPost ¶
func (*Sender) SendEvents ¶
func (*Sender) SendWelcomePost ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService( logger *util.Logger, plugin plugin.API, supportedUserCustomStatus bool, credentialsRepo *repository.CredentialsRepo, sender *Sender, calendar *Calendar) *User
func (*User) IsUserExist ¶
func (*User) LoadEventUpdates ¶
func (*User) UserEventsHandler ¶
type Workspace ¶
func NewWorkspaceService ¶
func NewWorkspaceService(workspaceRepo *repository.WorkspaceRepo) *Workspace
func (*Workspace) DeleteUser ¶
func (*Workspace) GetUserIds ¶
Click to show internal directories.
Click to hide internal directories.