Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronService ¶
type CronService struct { Scheduler *cron.Cron ChatRepository storage.ChatRepository TelegramNotifications *jobs.TelegramNotifications }
func NewCronService ¶
func NewCronService(sh *cron.Cron, r storage.ChatRepository, tn *jobs.TelegramNotifications) *CronService
func (*CronService) Init ¶
func (c *CronService) Init()
func (*CronService) RemoveJob ¶
func (c *CronService) RemoveJob(chat *models.Chat)
func (*CronService) SetJob ¶
func (c *CronService) SetJob(chat *models.Chat, notificationCron string) (cron.EntryID, error)
func (*CronService) Start ¶
func (c *CronService) Start()
Click to show internal directories.
Click to hide internal directories.