Versions in this module Expand all Collapse all v3 v3.46.0 Jun 16, 2025 Changes in this version + type Manager interface + Add func(task T) + Cancel func(id string) + CancelAll func() + CancelByCondition func(condition func(task T) bool) + GetAll func() []T + GetByCondition func(condition func(task T) bool) []T + GetByID func(id string) (T, bool) + GetByState func(state ...tache.State) []T + Remove func(id string) + RemoveAll func() + RemoveByCondition func(condition func(task T) bool) + RemoveByState func(state ...tache.State) + Retry func(id string) + RetryAllFailed func() + type TaskExtension struct + Creator *model.User + func (t *TaskExtension) ClearEndTime() + func (t *TaskExtension) Ctx() context.Context + func (t *TaskExtension) GetCreator() *model.User + func (t *TaskExtension) GetEndTime() *time.Time + func (t *TaskExtension) GetStartTime() *time.Time + func (t *TaskExtension) GetTotalBytes() int64 + func (t *TaskExtension) ReinitCtx() + func (t *TaskExtension) SetCreator(creator *model.User) + func (t *TaskExtension) SetEndTime(endTime time.Time) + func (t *TaskExtension) SetStartTime(startTime time.Time) + func (t *TaskExtension) SetTotalBytes(totalBytes int64) + type TaskExtensionInfo interface + GetCreator func() *model.User + GetEndTime func() *time.Time + GetStartTime func() *time.Time + GetTotalBytes func() int64