阶段性提交

This commit is contained in:
GoEdgeLab
2020-07-29 19:34:54 +08:00
parent b984b68089
commit 16d2dff57a
56 changed files with 5799 additions and 959 deletions

View File

@@ -0,0 +1,6 @@
package nodes
type NodeConfig struct {
Id string `json:"id" yaml:"id"`
Secret string `json:"secret" yaml:"secret"`
}

View File

@@ -0,0 +1,13 @@
package nodes
import "encoding/json"
type ServerConfig struct {
Id string `json:"id" yaml:"id"`
IsOn bool `json:"isOn" yaml:"isOn"`
Name string `json:"name" yaml:"name"`
}
func (this *ServerConfig) AsJSON() ([]byte, error) {
return json.Marshal(this)
}