tasks

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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 NotificationMailData struct {
	URL  string
	Days uint16
}

type NotificationTask

type NotificationTask struct {
	// contains filtered or unexported fields
}

func (NotificationTask) Run

func (n NotificationTask) Run()

type Task

type Task struct {
	Factory              TaskFactory
	Description          string
	SchedulingDefinition string
}

type TaskFactory

type TaskFactory func() cron.Job

type TaskManager

type TaskManager struct {
	// contains filtered or unexported fields
}

func NewTaskManager

func NewTaskManager() TaskManager

func (*TaskManager) RegisterAndStartCronTask

func (t *TaskManager) RegisterAndStartCronTask(tasks ...Task)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL