Discover Packages
github.com/fabiant7t/totalos
pkg
server
package
Version:
v0.0.18
Opens a new window with list of versions in this module.
Published: Oct 23, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type CPU struct {
Name string `json:"name"`
Cores int `json:"cores"`
CoreFreqMin MHz `json:"core_freq_min_mhz"`
CoreFreqMax MHz `json:"core_freq_max_mhz"`
Threads int `json:"threads"`
}
type Disk struct {
Model string `json:"model"`
Name string `json:"name"`
Serial string `json:"serial"`
Size int `json:"size"`
Type string `json:"type"`
Transport string `json:"tran"`
WWN string `json:"wwn"`
}
type Ethernet struct {
Device string `json:"device"`
MAC string `json:"mac"`
Speed Mbps `json:"speed_mbps"`
}
type Machine struct {
Arch string `json:"arch"`
IPv4Network Network `json:"ipv4_network"`
Hostname string `json:"hostname"`
Disks []Disk `json:"disks"`
CPU CPU `json:"cpu"`
Memory Memory `json:"memory"`
System System `json:"system"`
Ethernet Ethernet `json:"ethernet"`
}
type Memory struct {
Size GigaByte `json:"size_gb"`
Modules []string `json:"modules"`
}
type Network struct {
IP string `json:"ip"`
Netmask string `json:"netmask"`
Gateway string `json:"gateway"`
}
type System struct {
Manufacturer string `json:"manufacturer"`
ProductName string `json:"product_name"`
Version string `json:"version"`
Family string `json:"family"`
UUID string `json:"uuid"`
SerialNumber string `json:"serial_number"`
SKUNumber string `json:"sku_number"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.