initial commit

This commit is contained in:
Adrian Zürcher
2025-08-04 16:59:29 +02:00
commit 21b41de886
10 changed files with 470 additions and 0 deletions

17
models/htopTable.go Normal file
View 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
}