mirror of
https://github.com/bcicen/ctop.git
synced 2025-11-12 14:15:40 +01:00
23 lines
338 B
Go
23 lines
338 B
Go
|
|
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)
|
||
|
|
}
|