Documentation ¶
Index ¶
- type CategoryController
- func (c *CategoryController) DeleteBy(idOrName string) mvc.Result
- func (c *CategoryController) GetBy(idOrName string) (category *datamodels.Category, success bool)
- func (c *CategoryController) GetByJobsList(idOrName string, ctx iris.Context) (jobs []*datamodels.Job, err error)
- func (c *CategoryController) GetByJobsListBy(idOrName string, page int, ctx iris.Context) (jobs []*datamodels.Job, err error)
- func (c *CategoryController) GetList(ctx iris.Context) (categories []*datamodels.Category, success bool)
- func (c *CategoryController) GetListBy(page int, ctx iris.Context) (categories []*datamodels.Category, success bool)
- func (c *CategoryController) PostCreate(ctx iris.Context) (category *datamodels.Category, err error)
- func (c *CategoryController) PutBy(idOrName string, ctx iris.Context) (category *datamodels.Category, err error)
- type IndexController
- type JobController
- func (c *JobController) DeleteBy(id int64) mvc.Result
- func (c *JobController) GetBy(id int64) (job *datamodels.Job, success bool)
- func (c *JobController) GetByExecuteList(jobID int64, ctx iris.Context) (jobExecutes []*datamodels.JobExecute, success bool)
- func (c *JobController) GetByExecuteListBy(jobID int64, page int, ctx iris.Context) (jobExecutes []*datamodels.JobExecute, success bool)
- func (c *JobController) GetList(ctx iris.Context) (jobs []*datamodels.Job, success bool)
- func (c *JobController) GetListBy(page int, ctx iris.Context) (jobs []*datamodels.Job, success bool)
- func (c *JobController) PostCreate(ctx iris.Context) (job *datamodels.Job, err error)
- func (c *JobController) PutBy(id int64, ctx iris.Context) (job *datamodels.Job, err error)
- type JobExecuteController
- func (c *JobExecuteController) DeleteByKill(id int64) mvc.Result
- func (c *JobExecuteController) GetBy(id int64) (jobExecute *datamodels.JobExecute, success bool)
- func (c *JobExecuteController) GetByLog(id int64) (jobExecuteLog *datamodels.JobExecuteLog, success bool)
- func (c *JobExecuteController) GetList(ctx iris.Context) (jobExecutes []*datamodels.JobExecute, success bool)
- func (c *JobExecuteController) GetListBy(page int, ctx iris.Context) (jobExecutes []*datamodels.JobExecute, success bool)
- func (c *JobExecuteController) PostCreate(ctx iris.Context) (jobExecute *datamodels.JobExecute, err error)
- func (c *JobExecuteController) PostResultCreate(ctx iris.Context) (jobExecute *datamodels.JobExecute, err error)
- type JobKillController
- func (c *JobKillController) GetBy(id int64) (job *datamodels.JobKill, success bool)
- func (c *JobKillController) GetList(ctx iris.Context) (jobKills []*datamodels.JobKill, success bool)
- func (c *JobKillController) GetListBy(page int, ctx iris.Context) (jobKills []*datamodels.JobKill, success bool)
- func (c *JobKillController) PostCreate(ctx iris.Context) (jobKill *datamodels.JobKill, err error)
- func (c *JobKillController) PutByFinished(id int64) (jobKill *datamodels.JobKill, err error)
- type LockController
- type WorkerController
- func (c *WorkerController) DeleteBy(name string) mvc.Result
- func (c *WorkerController) GetBy(name string) (worker *datamodels.Worker, success bool)
- func (c *WorkerController) GetList() (workers []*datamodels.Worker, success bool)
- func (c *WorkerController) PostCreate(ctx iris.Context) (worker *datamodels.Worker, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryController ¶
type CategoryController struct { Session *sessions.Session Ctx iris.Context Service services.CategoryService }
func (*CategoryController) DeleteBy ¶
func (c *CategoryController) DeleteBy(idOrName string) mvc.Result
根据id或者name删除分类
func (*CategoryController) GetBy ¶
func (c *CategoryController) GetBy(idOrName string) (category *datamodels.Category, success bool)
根据ID或者Name获取分类
func (*CategoryController) GetByJobsList ¶
func (c *CategoryController) GetByJobsList(idOrName string, ctx iris.Context) (jobs []*datamodels.Job, err error)
func (*CategoryController) GetByJobsListBy ¶
func (c *CategoryController) GetByJobsListBy(idOrName string, page int, ctx iris.Context) (jobs []*datamodels.Job, err error)
func (*CategoryController) GetList ¶
func (c *CategoryController) GetList(ctx iris.Context) (categories []*datamodels.Category, success bool)
获取分类的列表
func (*CategoryController) GetListBy ¶
func (c *CategoryController) GetListBy(page int, ctx iris.Context) (categories []*datamodels.Category, success bool)
获取分类的列表
func (*CategoryController) PostCreate ¶
func (c *CategoryController) PostCreate(ctx iris.Context) (category *datamodels.Category, err error)
创建分类
func (*CategoryController) PutBy ¶
func (c *CategoryController) PutBy(idOrName string, ctx iris.Context) (category *datamodels.Category, err error)
更新分类ByName
type IndexController ¶
func (*IndexController) Get ¶
func (c *IndexController) Get(ctx iris.Context)
func (*IndexController) GetInfo ¶
func (c *IndexController) GetInfo(ctx iris.Context)
func (*IndexController) GetPing ¶
func (c *IndexController) GetPing(ctx iris.Context)
type JobController ¶
type JobController struct { Session *sessions.Session Ctx iris.Context Service services.JobService }
func (*JobController) GetBy ¶
func (c *JobController) GetBy(id int64) (job *datamodels.Job, success bool)
根据ID获取分类
func (*JobController) GetByExecuteList ¶
func (c *JobController) GetByExecuteList(jobID int64, ctx iris.Context) (jobExecutes []*datamodels.JobExecute, success bool)
获取Job的执行列表
func (*JobController) GetByExecuteListBy ¶
func (c *JobController) GetByExecuteListBy(jobID int64, page int, ctx iris.Context) (jobExecutes []*datamodels.JobExecute, success bool)
func (*JobController) GetList ¶
func (c *JobController) GetList(ctx iris.Context) (jobs []*datamodels.Job, success bool)
获取Job的列表
func (*JobController) GetListBy ¶
func (c *JobController) GetListBy(page int, ctx iris.Context) (jobs []*datamodels.Job, success bool)
获取Job的列表
func (*JobController) PostCreate ¶
func (c *JobController) PostCreate(ctx iris.Context) (job *datamodels.Job, err error)
创建Job
func (*JobController) PutBy ¶
func (c *JobController) PutBy(id int64, ctx iris.Context) (job *datamodels.Job, err error)
更新Job 为了方便管理,Job的分类是不可修改的
type JobExecuteController ¶
type JobExecuteController struct { Session *sessions.Session Ctx iris.Context Service services.JobExecuteService }
func (*JobExecuteController) DeleteByKill ¶
func (c *JobExecuteController) DeleteByKill(id int64) mvc.Result
杀掉执行
func (*JobExecuteController) GetBy ¶
func (c *JobExecuteController) GetBy(id int64) (jobExecute *datamodels.JobExecute, success bool)
根据ID获取JobExecute
func (*JobExecuteController) GetByLog ¶
func (c *JobExecuteController) GetByLog(id int64) (jobExecuteLog *datamodels.JobExecuteLog, success bool)
根据ID获取JobExecute的日志
func (*JobExecuteController) GetList ¶
func (c *JobExecuteController) GetList(ctx iris.Context) (jobExecutes []*datamodels.JobExecute, success bool)
获取列表
func (*JobExecuteController) GetListBy ¶
func (c *JobExecuteController) GetListBy(page int, ctx iris.Context) (jobExecutes []*datamodels.JobExecute, success bool)
func (*JobExecuteController) PostCreate ¶
func (c *JobExecuteController) PostCreate(ctx iris.Context) (jobExecute *datamodels.JobExecute, err error)
Post创建JobExecute
func (*JobExecuteController) PostResultCreate ¶
func (c *JobExecuteController) PostResultCreate(ctx iris.Context) (jobExecute *datamodels.JobExecute, err error)
Post保存JobExecute的执行日志
type JobKillController ¶
type JobKillController struct { Session *sessions.Session Ctx iris.Context Service services.JobKillService }
func (*JobKillController) GetBy ¶
func (c *JobKillController) GetBy(id int64) (job *datamodels.JobKill, success bool)
根据ID获取JobKill
func (*JobKillController) GetList ¶
func (c *JobKillController) GetList(ctx iris.Context) (jobKills []*datamodels.JobKill, success bool)
获取JobKill的列表
func (*JobKillController) GetListBy ¶
func (c *JobKillController) GetListBy(page int, ctx iris.Context) (jobKills []*datamodels.JobKill, success bool)
func (*JobKillController) PostCreate ¶
func (c *JobKillController) PostCreate(ctx iris.Context) (jobKill *datamodels.JobKill, err error)
创建JobKill
func (*JobKillController) PutByFinished ¶
func (c *JobKillController) PutByFinished(id int64) (jobKill *datamodels.JobKill, err error)
设置JobKill为完成
type LockController ¶
type LockController struct { Ctx *iris.Context Session *sessions.Session Service services.LockService }
func (*LockController) DeleteReleaseBy ¶
func (c *LockController) DeleteReleaseBy(leaseID int64, ctx iris.Context)
对锁进行是否
func (*LockController) PostCreate ¶
func (c *LockController) PostCreate(ctx iris.Context) (lock *datamodels.Lock, err error)
type WorkerController ¶
type WorkerController struct { Session *sessions.Session Ctx iris.Context Service services.WorkerService }
func (*WorkerController) GetBy ¶
func (c *WorkerController) GetBy(name string) (worker *datamodels.Worker, success bool)
func (*WorkerController) GetList ¶
func (c *WorkerController) GetList() (workers []*datamodels.Worker, success bool)
func (*WorkerController) PostCreate ¶
func (c *WorkerController) PostCreate(ctx iris.Context) (worker *datamodels.Worker, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.