portal/interfaces/cron.go

15 lines
259 B
Go
Raw Normal View History

2024-01-19 20:46:37 +00:00
package interfaces
import "github.com/go-co-op/gocron/v2"
type CronService interface {
Scheduler() gocron.Scheduler
2024-01-19 22:45:52 +00:00
RegisterService(service CronableService)
2024-01-19 20:46:37 +00:00
Service
}
type CronableService interface {
LoadInitialTasks(cron CronService) error
Service
}