mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
18 lines
423 B
Go
18 lines
423 B
Go
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
|
|
}
|