oc-lib/models/workflow/workflow_schedule.go

17 lines
510 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"`
2024-08-06 08:40:05 +02:00
Name string `json:"name" bson:"name" validate:"required"`
2024-07-30 09:20:33 +02:00
Start *time.Time `json:"start" bson:"start" validate:"required"`
End *time.Time `json:"end,omitempty" bson:"end,omitempty"`
2024-08-08 11:14:24 +02:00
Cron string `json:"cron,omitempty" bson:"cron,omitempty"` // ss mm hh dd MM dw task
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
}