mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
feat: added modules
This commit is contained in:
17
core/entity/node.go
Normal file
17
core/entity/node.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package entity
|
||||
|
||||
type NodeInfo struct {
|
||||
Key string `json:"key"`
|
||||
IsMaster bool `json:"is_master"`
|
||||
Name string `json:"name"`
|
||||
Ip string `json:"ip"`
|
||||
Mac string `json:"mac"`
|
||||
Hostname string `json:"hostname"`
|
||||
Description string `json:"description"`
|
||||
AuthKey string `json:"auth_key"`
|
||||
MaxRunners int `json:"max_runners"`
|
||||
}
|
||||
|
||||
func (n NodeInfo) Value() interface{} {
|
||||
return n
|
||||
}
|
||||
Reference in New Issue
Block a user