initial refactor of all column widgets to standard interface

This commit is contained in:
Bradley Cicenas
2019-12-30 08:39:03 -05:00
parent 8fcd14e097
commit 918ccdbe39
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