oc-lib/models/workflow/workflow_schedule.go

16 lines
416 B
Go
Raw Normal View History

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
}