Files
atomctl/templates/project/pkg/atom/contracts/cron_job.go.tpl
2025-01-23 19:03:17 +08:00

16 lines
224 B
Smarty

package contracts
import (
"time"
"github.com/riverqueue/river"
)
type CronJob interface {
Description() string
Periodic() time.Duration
JobArgs() []river.JobArgs
InsertOpts() *river.InsertOpts
RunOnStart() bool
}