added sched tasks skel

This commit is contained in:
redanthrax 2022-06-20 17:05:11 -07:00
parent 6c94a8653f
commit 7998bbe0eb
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,11 @@
package tasks
type SchedTask struct {
Name string `json:"name"`
Minute int `json:"minute"`
Hour int `json:"hour"`
Day int `json:"day"`
Month int `json:"month"`
Weekday int `json:"weekday"`
Command string `json:"command"`
}

View file

@ -0,0 +1,5 @@
package tasks
func CreateSchedTask(st SchedTask) (bool, error) {
return true, nil
}