Files
crawlab/core/entity/node.go
2024-06-14 15:42:50 +08:00

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
}