mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
25 lines
638 B
Go
25 lines
638 B
Go
package interfaces
|
|
|
|
import "go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
|
type Spider interface {
|
|
ModelWithNameDescription
|
|
GetType() (ty string)
|
|
GetMode() (mode string)
|
|
SetMode(mode string)
|
|
GetNodeIds() (ids []primitive.ObjectID)
|
|
SetNodeIds(ids []primitive.ObjectID)
|
|
GetCmd() (cmd string)
|
|
SetCmd(cmd string)
|
|
GetParam() (param string)
|
|
SetParam(param string)
|
|
GetPriority() (p int)
|
|
SetPriority(p int)
|
|
GetColId() (id primitive.ObjectID)
|
|
SetColId(id primitive.ObjectID)
|
|
GetIncrementalSync() (incrementalSync bool)
|
|
SetIncrementalSync(incrementalSync bool)
|
|
GetAutoInstall() (autoInstall bool)
|
|
SetAutoInstall(autoInstall bool)
|
|
}
|