mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
22 lines
443 B
Go
22 lines
443 B
Go
package cwidgets
|
|
|
|
import (
|
|
"github.com/bcicen/ctop/logging"
|
|
"github.com/bcicen/ctop/models"
|
|
)
|
|
|
|
var log = logging.Init()
|
|
|
|
type WidgetUpdater interface {
|
|
SetMeta(models.Meta)
|
|
SetMetrics(models.Metrics)
|
|
}
|
|
|
|
type NullWidgetUpdater struct{}
|
|
|
|
// NullWidgetUpdater implements WidgetUpdater
|
|
func (wu NullWidgetUpdater) SetMeta(models.Meta) {}
|
|
|
|
// NullWidgetUpdater implements WidgetUpdater
|
|
func (wu NullWidgetUpdater) SetMetrics(models.Metrics) {}
|