refactor all container widgets into subpackage

This commit is contained in:
Bradley Cicenas
2017-02-26 22:04:24 +00:00
parent 4aaf26b63d
commit 70f2648952
14 changed files with 348 additions and 317 deletions

22
cwidgets/main.go Normal file
View File

@@ -0,0 +1,22 @@
package cwidgets
import (
"github.com/bcicen/ctop/logging"
ui "github.com/gizak/termui"
)
var log = logging.Init()
type ContainerWidgets interface {
Render(int, int)
Reset()
Buffer() ui.Buffer
Highlight()
UnHighlight()
SetY(int)
SetWidth(int)
SetStatus(string)
SetCPU(int)
SetNet(int64, int64)
SetMem(int64, int64, int)
}