mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-09-27 20:32:10 +08:00
23 lines
469 B
Go
23 lines
469 B
Go
package model
|
|
|
|
type ProcessInfo struct {
|
|
Name string `json:"name"`
|
|
Uuid int `json:"uuid"`
|
|
StartTime string `json:"startTime"`
|
|
User string `json:"user"`
|
|
Usage Usage `json:"usage"`
|
|
State State `json:"state"`
|
|
TermType string `json:"termType"`
|
|
}
|
|
|
|
type Usage struct {
|
|
Cpu []float64 `json:"cpu"`
|
|
Mem []float64 `json:"mem"`
|
|
Time []string `json:"time"`
|
|
}
|
|
|
|
type State struct {
|
|
State uint8 `json:"state"`
|
|
Info string `json:"info"`
|
|
}
|