Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CPUInfo ¶
type CPUInfo struct { CPU int `json:"cpu"` Cores int32 `json:"cores"` Speed string `json:"speed"` Model string `json:"model"` }
func GetCPUInfo ¶
type Interface ¶
type Interface struct { Name string `json:"name"` Addrs []net.InterfaceAddr `json:"addrs"` // IP Address, MAC Address and their respective ports Flags []string `json:"flags"` // Types of links (up, down, multicast, etc.) Speed string `json:"speed"` }
type Interfaces ¶
type Interfaces struct {
// contains filtered or unexported fields
}
func GetInterfaces ¶
func GetInterfaces() (Interfaces, error)
func (*Interfaces) LogWriter ¶
func (i *Interfaces) LogWriter()
func (Interfaces) String ¶
func (i Interfaces) String() string
type OS ¶
type Report ¶
type Report struct { Ram `json:"Ram"` Swap `json:"Swap"` OS `json:"OS"` CPUInfo `json:"CPUInfo"` Inter Interfaces `json:"Interfaces"` }
func MakeReport ¶
Click to show internal directories.
Click to hide internal directories.