resource schedule init

This commit is contained in:
mr 2024-07-25 11:52:05 +02:00
parent 94b45387fb
commit 6f6cb7c489

View File

@ -3,13 +3,14 @@ package oclib
import "time"
type WorkflowSchedule struct {
Id string `json:"id"`
Start time.Time
End time.Time
Cron string
Id string `json:"id" bson:"id"`
Name string `json:"name" bson:"name"`
Start time.Time `json:"start" bson:"start"`
End time.Time `json:"end" bson:"end"`
Cron string `json:"cron" bson:"cron"`
}
func (ws *WorkflowSchedule) GetAllDates() (timetable []time.Time){
func (ws *WorkflowSchedule) GetAllDates() (timetable []time.Time) {
// Return all the execution time generated by the Cron
return
}
}