MCPcopy Create free account
hub / github.com/buguang01/bige / IAutoTaskModel

Interface IAutoTaskModel

modules/AutoTaskModule.go:107–114  ·  view source on GitHub ↗

* 循环任务接口 使用AddTask添加到module中时,如果任务以存在就不做任何事 使用ReTask添加到module中时,如果任务已存在就会先把之前的停下来,再把自己添加到管理器中 */

Source from the content-addressed store, hash-verified

105使用ReTask添加到module中时,如果任务已存在就会先把之前的停下来,再把自己添加到管理器中
106*/
107type IAutoTaskModel interface {
108 //任务名字(唯一性)
109 GetTaskName() string
110 //开始任务
111 Start(mod *AutoTaskModule)
112 //结束任务
113 Stop()
114}
115
116type AutoTaskModel struct {
117 thgo *threads.ThreadGo

Callers 6

AddTaskMethod · 0.65
ReTaskMethod · 0.65
AddTaskMethod · 0.65
ReTaskMethod · 0.65
ReTaskMethod · 0.65
DelRaskMethod · 0.65

Implementers 1

AutoTaskModelmodules/AutoTaskModule.go

Calls

no outgoing calls

Tested by

no test coverage detected