Documentation ¶
Index ¶
- Variables
- func CreateTasker(execTime time.Duration, clientCode string, taskerName string, ...) (taskerId string)
- func DeleteStoppedTask(clientCode string)
- func DeleteTasker(clientCode string, taskerId string)
- func ExecTasker(clientCode string, taskerId string, taskerFunc func())
- func GetSubscriptionMessagesFromCache()
- func Init(app *iris.Application)
- func RestTaskerNextExecTime(clientCode string, taskerId string, execTime time.Duration)
- func StopTasker(clientCode string, taskerId string)
- type Tasker
Constants ¶
This section is empty.
Variables ¶
View Source
var TaskerMap = map[string]map[string]*Tasker{}
Functions ¶
func CreateTasker ¶
func CreateTasker(execTime time.Duration, clientCode string, taskerName string, ownerObjName string) (taskerId string)
CreateTasker 创建任务
Description: 创建一个定时任务,根据执行时间
func ExecTasker ¶
ExecTasker 执行任务
func GetSubscriptionMessagesFromCache ¶
func GetSubscriptionMessagesFromCache()
func RestTaskerNextExecTime ¶
RestTaskerNextExecTime 重置指定任务下次执行时间
Types ¶
type Tasker ¶
type Tasker struct { TaskerStatus int8 // 任务状态(1 就绪 2 执行中 3 阻塞中 4 已停止) TaskerId string // 任务id TaskerName string // 任务名称 OwnerObjName string // 任务所属对象名称 ExecTime string // 执行间隔时间(年-月-周-日&次) // contains filtered or unexported fields }
Tasker 定时任务对象
func GetTaskerList ¶
GetTaskerList 获取指定租户任务列表
Click to show internal directories.
Click to hide internal directories.