initial refactor of all column widgets to standard interface

This commit is contained in:
Bradley Cicenas
2020-10-25 10:23:30 -04:00
parent 9bcf2c2c7a
commit 8427b0c81d
9 changed files with 198 additions and 178 deletions
+11
View File
@@ -7,6 +7,17 @@ type Log struct {
Message string
}
type Meta map[string]string
func NewMeta() Meta { return make(Meta) }
func (m Meta) Get(k string) string {
if s, ok := m[k]; ok {
return s
}
return ""
}
type Metrics struct {
CPUUtil int
NetTx int64