Documentation
¶
Index ¶
- type HttpServer
- type Scheduler
- func (s *Scheduler) CreateTask(ctx context.Context, task *model.Task) error
- func (s *Scheduler) HttpServer() *HttpServer
- func (s *Scheduler) ListTask(ctx context.Context, filter *model.TaskFilter) ([]*model.Task, error)
- func (s *Scheduler) OperateTask(ctx context.Context, bizID, taskKey string, nextStatus model.TaskStatus) error
- func (s *Scheduler) Run() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func (*HttpServer) CreateTask ¶
func (s *HttpServer) CreateTask(c *gin.Context)
func (*HttpServer) OperateTask ¶
func (s *HttpServer) OperateTask(c *gin.Context)
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func (*Scheduler) CreateTask ¶
func (*Scheduler) HttpServer ¶
func (s *Scheduler) HttpServer() *HttpServer
func (*Scheduler) OperateTask ¶
Click to show internal directories.
Click to hide internal directories.