Documentation
¶
Index ¶
- Variables
- type Mgr
- func (m *Mgr) ChangeTaskGroup(ctx context.Context, taskID uint32, group string) error
- func (m *Mgr) CreateTask(ctx context.Context, user, group string, taskTyp uint32, taskCtx string, ...) (uint32, error)
- func (m *Mgr) GetTask(ctx context.Context, taskID uint32) (*model.AsyncTask, error)
- func (m *Mgr) GetTasks(ctx context.Context, user, group string, taskTypes []uint32, ...) ([]*model.AsyncTask, error)
- func (m *Mgr) RegisterTask(taskTyp uint32, newTask async_task.ITaskFunc) error
- func (m *Mgr) Run(ctx context.Context) error
- func (m *Mgr) Stop()
- func (m *Mgr) UserDelete(ctx context.Context, taskID uint32) error
- func (m *Mgr) UserPause(ctx context.Context, taskID uint32) error
- func (m *Mgr) UserRun(ctx context.Context, taskID uint32) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMgrAlreadyStop = errors.New("async mgr already stop")
)
Functions ¶
This section is empty.
Types ¶
type Mgr ¶
type Mgr struct {
// contains filtered or unexported fields
}
Mgr goroutine safe
func (*Mgr) ChangeTaskGroup ¶
func (*Mgr) CreateTask ¶
func (*Mgr) RegisterTask ¶
func (m *Mgr) RegisterTask(taskTyp uint32, newTask async_task.ITaskFunc) error
Click to show internal directories.
Click to hide internal directories.