12345678910111213141516 |
- package jobs
- import "github.com/robfig/cron/v3"
- type Job interface {
- Run()
- addJob(*cron.Cron) (int, error)
- }
- type JobsExec interface {
- Exec(arg interface{}) error
- }
- func CallExec(e JobsExec, arg interface{}) error {
- return e.Exec(arg)
- }
|