node-api/nodes/main.go

16 lines
227 B
Go
Raw Normal View History

2020-07-08 22:09:19 +00:00
package nodes
// Node keeps info about server
type Node struct {
PerformanceIndex int
}
// GetNodeInfo returns information about this node
func GetNodeInfo() *Node {
node := Node{
PerformanceIndex: 0,
}
return &node
}