shirou_gopsutil/host.go

17 lines
393 B
Go
Raw Normal View History

2014-04-22 08:44:22 +08:00
package gopsutil
2014-04-18 15:34:47 +08:00
// A HostInfoStat describes the host status.
// This is not in the psutil but it useful.
type HostInfoStat struct {
2014-04-18 15:34:47 +08:00
Hostname string `json:"hostname"`
Uptime int64 `json:"uptime"`
Procs uint64 `json:"procs"`
}
2014-04-22 16:38:47 +08:00
type UserStat struct {
User string `json:"user"`
Terminal string `json:"terminal"`
Host string `json:"host"`
Started int `json:"started"`
}