2024-07-19 10:54:58 +02:00
|
|
|
package oclib
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type WorkflowSchedule struct {
|
2024-07-23 16:14:46 +02:00
|
|
|
Id string `json:"id"`
|
2024-07-26 13:45:10 +02:00
|
|
|
Start time.Time `json:"start" bson:"start" validate:"required"`
|
2024-07-23 16:14:46 +02:00
|
|
|
End time.Time `json:"end,omitempty" bson:"end,omitempty"`
|
|
|
|
Cron string `json:"cron,omitempty" bson:"cron,omitempty"`
|
2024-07-19 10:54:58 +02:00
|
|
|
}
|
|
|
|
|
2024-07-23 16:14:46 +02:00
|
|
|
func (ws *WorkflowSchedule) GetAllDates() (timetable []time.Time) {
|
2024-07-19 10:54:58 +02:00
|
|
|
// Return all the execution time generated by the Cron
|
|
|
|
return
|
2024-07-23 16:14:46 +02:00
|
|
|
}
|