portal/interfaces/cron.go

14 lines
217 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
Service
}
type CronableService interface {
LoadInitialTasks(cron CronService) error
Service
}