mirror of
https://github.com/bcicen/ctop.git
synced 2025-11-13 06:35:39 +01:00
refactor all container widgets into subpackage
This commit is contained in:
22
cwidgets/main.go
Normal file
22
cwidgets/main.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user