Documentation ¶
Index ¶
- func AddJob(r render.Render, Ss *schedule.ScheduleManager, job schedule.Job)
- func AddRelTask(params martini.Params, ctx *web.Context, r render.Render, ...)
- func AddSchedule(params martini.Params, r render.Render, Ss *schedule.ScheduleManager, ...)
- func AddTask(params martini.Params, r render.Render, Ss *schedule.ScheduleManager, ...)
- func DeleteJob(params martini.Params, r render.Render, Ss *schedule.ScheduleManager)
- func DeleteRelTask(params martini.Params, ctx *web.Context, r render.Render, ...)
- func DeleteSchedule(params martini.Params, ctx *web.Context, r render.Render, ...)
- func DeleteTask(params martini.Params, r render.Render, Ss *schedule.ScheduleManager)
- func GetJobsForSchedule(params martini.Params, r render.Render, res http.ResponseWriter, ...)
- func GetScheduleById(params martini.Params, r render.Render, Ss *schedule.ScheduleManager)
- func GetSchedules(r render.Render, Ss *schedule.ScheduleManager)
- func Logger() martini.Handler
- func StartManager(sl *schedule.ScheduleManager)
- func UpdateJob(r render.Render, Ss *schedule.ScheduleManager, job schedule.Job)
- func UpdateSchedule(params martini.Params, r render.Render, Ss *schedule.ScheduleManager, ...)
- func UpdateTask(params martini.Params, r render.Render, Ss *schedule.ScheduleManager, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRelTask ¶
func AddRelTask(params martini.Params, ctx *web.Context, r render.Render, Ss *schedule.ScheduleManager)
addRelTask根据Url参数获取到要添加的Task关系
func AddSchedule ¶
func AddSchedule(params martini.Params, r render.Render, Ss *schedule.ScheduleManager, scd schedule.Schedule)
添加Schedule
func AddTask ¶
func AddTask(params martini.Params, r render.Render, Ss *schedule.ScheduleManager, task schedule.Task)
addTask获取客户端发送的Task信息,调用Task的AddTask方法持久化。 成功后根据其中的JobId找到对应Job将其添加 成功返回添加好的Job信息 错误返回err信息
func DeleteRelTask ¶
func DeleteSchedule ¶
func DeleteTask ¶
deleteTask从调度结构中删除指定的Task,并持久化。
func GetJobsForSchedule ¶
func GetJobsForSchedule(params martini.Params, r render.Render, res http.ResponseWriter, Ss *schedule.ScheduleManager)
func GetScheduleById ¶
根据参数中的Id,返回对应的Schedule信息
func UpdateSchedule ¶
func UpdateSchedule(params martini.Params, r render.Render, Ss *schedule.ScheduleManager, scd schedule.Schedule)
updateSchedule获取客户端发送的Schedule信息,并调用Schedule的Update方法将其 持久化并更新至Schedule中。 成功返回更新后的Schedule信息
func UpdateTask ¶
func UpdateTask(params martini.Params, r render.Render, Ss *schedule.ScheduleManager, task schedule.Task)
updateTask获取客户端发送的Task信息,并调用Job的UpdateTask方法将其 持久化并更新至Job中。 成功返回更新后的Task信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.