feat: added modules

This commit is contained in:
Marvin Zhang
2024-06-14 15:42:50 +08:00
parent f1833fed21
commit 0b67fd9ece
626 changed files with 60104 additions and 0 deletions

17
core/entity/node.go Normal file
View 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
}