ctop/cwidgets/main.go

22 lines
443 B
Go
Raw Permalink Normal View History

package cwidgets
import (
"github.com/bcicen/ctop/logging"
2017-06-27 17:46:03 +02:00
"github.com/bcicen/ctop/models"
)
var log = logging.Init()
type WidgetUpdater interface {
SetMeta(models.Meta)
2017-06-27 17:46:03 +02:00
SetMetrics(models.Metrics)
}
2020-01-03 00:02:53 +01:00
type NullWidgetUpdater struct{}
// NullWidgetUpdater implements WidgetUpdater
func (wu NullWidgetUpdater) SetMeta(models.Meta) {}
// NullWidgetUpdater implements WidgetUpdater
func (wu NullWidgetUpdater) SetMetrics(models.Metrics) {}