mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-31 18:10:50 +01:00
feat: added modules
This commit is contained in:
11
core/interfaces/task_base_service.go
Normal file
11
core/interfaces/task_base_service.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package interfaces
|
||||
|
||||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
||||
type TaskBaseService interface {
|
||||
WithConfigPath
|
||||
Module
|
||||
SaveTask(t Task, status string) (err error)
|
||||
IsStopped() (res bool)
|
||||
GetQueue(nodeId primitive.ObjectID) (queue string)
|
||||
}
|
||||
Reference in New Issue
Block a user