Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobHandler ¶
type JobHandler struct { *grpc.JobGRPCClient // contains filtered or unexported fields }
func NewJobHandler ¶
func NewJobHandler(log logger.Logger, cfg *config.Config) *JobHandler
func (*JobHandler) CreateJob ¶
func (jh *JobHandler) CreateJob(c *gin.Context)
@Summary Creates and schedule a job @Description Creates and schedule a job @Tags job @Accept json @Produce json @Param input body models.CreateJobRequest true "input" @Success 200 {object} models.CreateJobResponse @Router /job/create [post]
func (*JobHandler) DeleteJob ¶
func (jh *JobHandler) DeleteJob(c *gin.Context)
@Summary Delete a job by id @Description Delete a job by id @Tags job @Produce json @Param id query string true "some id" @Success 200 {object} models.DeleteJobResponse @Router /job/delete [post]
func (*JobHandler) GetJob ¶
func (jh *JobHandler) GetJob(c *gin.Context)
@Summary Get a job by id @Description Get a job by id @Tags job @Produce json @Param id query string true "some id" @Success 200 {object} models.Job @Router /job/get [get]
func (*JobHandler) ListJobs ¶
func (jh *JobHandler) ListJobs(c *gin.Context)
@Summary list jobs by type @Description list jobs by type @Tags job @Produce json @Param page query int true "Page" @Param size query int true "Size" @Success 200 {object} models.ListJobsResponse @Router /job/list [get]
func (*JobHandler) UpdateJob ¶
func (jh *JobHandler) UpdateJob(c *gin.Context)
@Summary Updates and reschedule a job @Description Updates and reschedule a job @Tags job @Accept json @Produce json @Param input body models.UpdateJobRequest true "input" @Success 200 {object} models.UpdateJobResponse @Router /job/update [post]