Files
tecamino-proccessSupervisor/models/htopTable.go
Adrian Zürcher 21b41de886 initial commit
2025-08-04 16:59:29 +02:00

18 lines
299 B
Go

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
}