resource schedule init
This commit is contained in:
parent
94b45387fb
commit
6f6cb7c489
@ -3,13 +3,14 @@ package oclib
|
|||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
type WorkflowSchedule struct {
|
type WorkflowSchedule struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id" bson:"id"`
|
||||||
Start time.Time
|
Name string `json:"name" bson:"name"`
|
||||||
End time.Time
|
Start time.Time `json:"start" bson:"start"`
|
||||||
Cron string
|
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 all the execution time generated by the Cron
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user