oc-lib/models/workflow/workflow_schedule.go

16 lines
420 B
Go
Raw Normal View History

2024-07-19 10:54:58 +02:00
package oclib
import "time"
type WorkflowSchedule struct {
2024-07-30 09:20:33 +02:00
Id string `json:"id"`
Start *time.Time `json:"start" bson:"start" validate:"required"`
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
}