| 28 | ) |
| 29 | |
| 30 | type Job interface { |
| 31 | GetName() string |
| 32 | GetSchedule() string |
| 33 | GetCommand() string |
| 34 | Middlewares() []Middleware |
| 35 | Use(...Middleware) |
| 36 | Run(*Context) error |
| 37 | Running() int32 |
| 38 | NotifyStart() |
| 39 | NotifyStop() |
| 40 | } |
| 41 | |
| 42 | type Context struct { |
| 43 | Scheduler *Scheduler |
no outgoing calls
no test coverage detected