godash/system/types.go
2022-10-24 09:00:58 +02:00

44 lines
974 B
Go

package system
type SystemConfig struct {
LiveSystem bool `mapstructure:"LIVE_SYSTEM"`
}
type LiveStorageInformation struct {
Value string `json:"value"`
Percentage float64 `json:"percentage"`
}
type LiveInformation struct {
CPU float64 `json:"cpu"`
Ram LiveStorageInformation `json:"ram"`
Disk LiveStorageInformation `json:"disk"`
ServerUptime uint64 `json:"server_uptime"`
}
type CPU struct {
Name string `json:"name"`
Threads string `json:"threads"`
Architecture string `json:"architecture"`
}
type Ram struct {
Total string `json:"total"`
Swap string `json:"swap"`
}
type Disk struct {
Total string `json:"total"`
Partitions string `json:"partitions"`
}
type StaticInformation struct {
CPU CPU `json:"cpu"`
Ram Ram `json:"ram"`
Disk Disk `json:"disk"`
}
type System struct {
Live LiveInformation `json:"live"`
Static StaticInformation `json:"static"`
}