initial commit
This commit is contained in:
17
models/htopTable.go
Normal file
17
models/htopTable.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
type HtopTable struct {
|
||||
Processes []Process
|
||||
CurrentSort string
|
||||
CurrentOrder string
|
||||
}
|
||||
|
||||
func GetTable() (*HtopTable, error) {
|
||||
processes, err := GetProcesses()
|
||||
if err != nil {
|
||||
return &HtopTable{}, err
|
||||
}
|
||||
return &HtopTable{
|
||||
Processes: processes,
|
||||
}, nil
|
||||
}
|
Reference in New Issue
Block a user