initial refactor of all column widgets to standard interface

This commit is contained in:
Bradley Cicenas
2019-06-08 21:34:43 +00:00
parent 8fcd14e097
commit 918ccdbe39
9 changed files with 198 additions and 178 deletions

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