| 1234567891011121314151617181920212223242526 |
- package modelse
- import (
- "sync"
- )
- type NodeInfoT struct {
- Hostname string
- HostIp string
- KernelVersion string
- SystemUUID string
- HostID int64
- AccountID int
- LicenseKey string
- Lock sync.RWMutex
- }
- type NodeInfoInterface interface {
- GetNodeInfo() *NodeInfoT
- }
- func (n *NodeInfoT) GetNodeInfo() *NodeInfoT {
- n.Lock.Lock()
- defer n.Lock.Unlock()
- return n
- }
|