27 lines
579 B
Go
27 lines
579 B
Go
package main
|
|
|
|
type Disk struct{}
|
|
|
|
type Disk_usage struct {
|
|
Path string `json:"path"`
|
|
Total uint64 `json:"total"`
|
|
Free uint64 `json:"free"`
|
|
Available uint64 `json:"available"`
|
|
Used uint64 `json:"used"`
|
|
Percent float64 `json:"percent"`
|
|
}
|
|
|
|
type Disk_IO_Counters struct {
|
|
ReadCount uint64 `json:"readCount"`
|
|
WriteCount uint64 `json:"writeCount"`
|
|
ReadBytes uint64 `json:"readBytes"`
|
|
WriteBytes uint64 `json:"writeBytes"`
|
|
ReadTime uint64 `json:"readTime"`
|
|
WriteTime uint64 `json:"writeTime"`
|
|
}
|
|
|
|
func NewDisk() Disk {
|
|
d := Disk{}
|
|
return d
|
|
}
|