Documentation ¶
Index ¶
- Variables
- type CbFuncMap
- type MultiTask
- type SingleTask
- type TimedTask
- func (tt *TimedTask) Add(key string, obj task.TaskObj, sche task.ISchedule)
- func (tt *TimedTask) AddAddCallback(cb func(*task.AddCbArgs))
- func (tt *TimedTask) AddBanCallback(cb func(*task.BanCbArgs))
- func (tt *TimedTask) AddCancelCallback(cb func(*task.CancelCbArgs))
- func (tt *TimedTask) AddExecuteCallback(cb func(*task.ExecuteCbArgs))
- func (tt *TimedTask) AddUnBanCallback(cb func(*task.UnBanCbArgs))
- func (tt *TimedTask) Ban(key string)
- func (tt *TimedTask) Cancel(key string)
- func (tt *TimedTask) DelAddCallback(cb func(*task.AddCbArgs))
- func (tt *TimedTask) DelBanCallback(cb func(*task.BanCbArgs))
- func (tt *TimedTask) DelCancelCallback(cb func(*task.CancelCbArgs))
- func (tt *TimedTask) DelExecuteCallback(cb func(*task.ExecuteCbArgs))
- func (tt *TimedTask) DelUnBanCallback(cb func(*task.UnBanCbArgs))
- func (tt *TimedTask) Execute(key string)
- func (tt *TimedTask) GetTimedTaskInfo() map[string]*task.TaskInfo
- func (tt *TimedTask) IsBan(key string) bool
- func (tt *TimedTask) IsExist(key string) bool
- func (tt *TimedTask) Set(key string, obj task.TaskObj, sche task.ISchedule)
- func (tt *TimedTask) Stop()
- func (tt *TimedTask) UnBan(key string)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CbFuncMap ¶
type CbFuncMap struct {
// contains filtered or unexported fields
}
type SingleTask ¶
type SingleTask struct {
*MultiTask
}
指定只执行一次定时任务
func NewSingleTask ¶
func NewSingleTask(routineCount int) *SingleTask
type TimedTask ¶
type TimedTask struct {
// contains filtered or unexported fields
}
func (*TimedTask) AddCancelCallback ¶
func (tt *TimedTask) AddCancelCallback(cb func(*task.CancelCbArgs))
func (*TimedTask) AddExecuteCallback ¶
func (tt *TimedTask) AddExecuteCallback(cb func(*task.ExecuteCbArgs))
func (*TimedTask) AddUnBanCallback ¶
func (tt *TimedTask) AddUnBanCallback(cb func(*task.UnBanCbArgs))
func (*TimedTask) DelCancelCallback ¶
func (tt *TimedTask) DelCancelCallback(cb func(*task.CancelCbArgs))
func (*TimedTask) DelExecuteCallback ¶
func (tt *TimedTask) DelExecuteCallback(cb func(*task.ExecuteCbArgs))
func (*TimedTask) DelUnBanCallback ¶
func (tt *TimedTask) DelUnBanCallback(cb func(*task.UnBanCbArgs))
func (*TimedTask) Execute ¶
主动执行一次指定key任务 不影响既有定时任务 执行的记录将会添加到任务总结信息中
func (*TimedTask) GetTimedTaskInfo ¶
获取定时任务列表信息
Click to show internal directories.
Click to hide internal directories.