1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-05-01 13:48:52 +08:00
shirou_gopsutil/disk.go

26 lines
555 B
Go
Raw Normal View History

2014-04-18 16:34:47 +09:00
package main
type Disk struct{}
type Disk_usage struct {
2014-04-20 00:03:47 +09:00
Path string `json:"path"`
Total uint64 `json:"total"`
Free uint64 `json:"free"`
Used uint64 `json:"used"`
UsedPercent float64 `json:"usedPercent"`
2014-04-18 16:34:47 +09:00
}
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
}