mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
refactor: reorder fields in Spider struct for improved readability
This commit is contained in:
@@ -27,10 +27,9 @@ type Spider struct {
|
|||||||
Stat *SpiderStat `json:"stat,omitempty" bson:"-"`
|
Stat *SpiderStat `json:"stat,omitempty" bson:"-"`
|
||||||
|
|
||||||
// execution
|
// execution
|
||||||
Cmd string `json:"cmd" bson:"cmd"` // execute command
|
Cmd string `json:"cmd" bson:"cmd"` // execute command
|
||||||
Param string `json:"param" bson:"param"` // default task param
|
Param string `json:"param" bson:"param"` // default task param
|
||||||
Priority int `json:"priority" bson:"priority"`
|
Priority int `json:"priority" bson:"priority"`
|
||||||
AutoInstall bool `json:"auto_install" bson:"auto_install"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type SpiderTemplateParams struct {
|
type SpiderTemplateParams struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user