mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 12:20:28 +08:00
阶段性提交
This commit is contained in:
6
internal/configs/nodes/node_config.go
Normal file
6
internal/configs/nodes/node_config.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package nodes
|
||||
|
||||
type NodeConfig struct {
|
||||
Id string `json:"id" yaml:"id"`
|
||||
Secret string `json:"secret" yaml:"secret"`
|
||||
}
|
||||
13
internal/configs/nodes/server_config.go
Normal file
13
internal/configs/nodes/server_config.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user