Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupTask ¶
type BackupTask struct {
// contains filtered or unexported fields
}
func NewBackupTask ¶
func NewBackupTask(sender mail.Mailer, repo *storage.ReadingRepository, label string) BackupTask
func (BackupTask) Run ¶
func (b BackupTask) Run()
func (BackupTask) String ¶
func (b BackupTask) String() string
type NotificationMailData ¶
type NotificationTask ¶
type NotificationTask struct {
// contains filtered or unexported fields
}
func NewNotificationTask ¶
func NewNotificationTask(sender mail.Mailer, repo storage.ReadingsLastDateLoader, config config.NotificationTaskConfig, label string) NotificationTask
func (NotificationTask) Run ¶
func (n NotificationTask) Run()
type Task ¶
type Task struct { Factory TaskFactory Description string SchedulingDefinition string }
type TaskFactory ¶
type TaskManager ¶
type TaskManager struct {
// contains filtered or unexported fields
}
func NewTaskManager ¶
func NewTaskManager() TaskManager
func (*TaskManager) RegisterAndStartCronTask ¶
func (t *TaskManager) RegisterAndStartCronTask(tasks ...Task)
Click to show internal directories.
Click to hide internal directories.