Versions in this module Expand all Collapse all v2 v2.0.6 Jun 23, 2020 Changes in this version + const ConfigDeletePushTokenOnSendError + const CronContextName + const EnablePushMessaging + const StatusDeleted + const StatusDone + const StatusExpiredCount + const StatusExpiredDate + const StatusFailed + const StatusNew + const StatusRunning + const StatusStopped + const StatusStoppedSystem + const StatusStoppedUser + func CronInserter(cron *CronSender) gin.HandlerFunc + func DbDeleteCronbox(tx gorp.SqlExecutor, cb models.Cronbox) (bool, error) + func DbDeleteCronboxAndTemplate(tx gorp.SqlExecutor, cb models.Cronbox) (bool, error) + func DbDeleteMessage(tx gorp.SqlExecutor, m models.Message) (bool, error) + func DbDeleteMessageId(tx gorp.SqlExecutor, messageID string) (bool, error) + func DbGetCronboxByJobID(tx gorp.SqlExecutor, id models.JobID) (*models.Cronbox, error) + func DbGetCronboxesForAll(tx gorp.SqlExecutor) ([]models.Cronbox, error) + func DbGetCronboxesForOwner(tx gorp.SqlExecutor, owner models.OwnerID) ([]models.Cronbox, error) + func DbGetJobTemplate(tx gorp.SqlExecutor, jobId models.JobID) (*models.Message, error) + func DbGetMessageByID(tx gorp.SqlExecutor, id string) (*models.Message, error) + func DbUpdateCronbox(tx gorp.SqlExecutor, cb models.Cronbox) (bool, error) + func IsExpired(job *models.Cronbox) bool + func IsRunnable(job *models.Cronbox) bool + func SecureRandomAlphaString(length int) string + func SecureRandomBytes(length int) []byte + type CronSender struct + DbMap *gorp.DbMap + FcmClient *messaging.Client + func (cs *CronSender) DeleteScheduledMessage(jobID models.JobID) (bool, error) + func (cs *CronSender) GetCronboxes(owner models.OwnerID) ([]models.Cronbox, error) + func (cs *CronSender) InitializeFromDB() error + func (cs *CronSender) ScheduleMessage(schedule string, timezone string, expire time.Time, repetitions int, ...) (*models.Cronbox, error) + func (cs *CronSender) StartCronbox(JobID models.JobID) error + func (cs *CronSender) StopCronbox(JobID models.JobID, status int) error Other modules containing this package bitbucket.org/corporesano/gomhtsu