17 lines
393 B
Go
17 lines
393 B
Go
package gopsutil
|
|
|
|
// A HostInfoStat describes the host status.
|
|
// This is not in the psutil but it useful.
|
|
type HostInfoStat struct {
|
|
Hostname string `json:"hostname"`
|
|
Uptime int64 `json:"uptime"`
|
|
Procs uint64 `json:"procs"`
|
|
}
|
|
|
|
type UserStat struct {
|
|
User string `json:"user"`
|
|
Terminal string `json:"terminal"`
|
|
Host string `json:"host"`
|
|
Started int `json:"started"`
|
|
}
|