2017-02-26 22:04:24 +00:00
|
|
|
package cwidgets
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/bcicen/ctop/logging"
|
2017-06-27 15:46:03 +00:00
|
|
|
"github.com/bcicen/ctop/models"
|
2017-02-26 22:04:24 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var log = logging.Init()
|
|
|
|
|
2017-03-06 08:25:59 +00:00
|
|
|
type WidgetUpdater interface {
|
2019-06-08 21:34:43 +00:00
|
|
|
SetMeta(models.Meta)
|
2017-06-27 15:46:03 +00:00
|
|
|
SetMetrics(models.Metrics)
|
2017-02-26 22:04:24 +00:00
|
|
|
}
|
2020-01-02 23:02:53 +00:00
|
|
|
|
|
|
|
type NullWidgetUpdater struct{}
|
|
|
|
|
|
|
|
// NullWidgetUpdater implements WidgetUpdater
|
|
|
|
func (wu NullWidgetUpdater) SetMeta(models.Meta) {}
|
|
|
|
|
|
|
|
// NullWidgetUpdater implements WidgetUpdater
|
|
|
|
func (wu NullWidgetUpdater) SetMetrics(models.Metrics) {}
|