cwidgets

package
v0.7.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 3 Imported by: 37

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteFormat

func ByteFormat(n int) string

convenience methods

func ByteFormat64 added in v0.7.4

func ByteFormat64(n int64) string

func ByteFormat64Short added in v0.7.4

func ByteFormat64Short(n int64) string

func ByteFormatShort added in v0.7.4

func ByteFormatShort(n int) string

Types

type NullWidgetUpdater added in v0.7.4

type NullWidgetUpdater struct{}

func (NullWidgetUpdater) SetMeta added in v0.7.4

func (wu NullWidgetUpdater) SetMeta(models.Meta)

NullWidgetUpdater implements WidgetUpdater

func (NullWidgetUpdater) SetMetrics added in v0.7.4

func (wu NullWidgetUpdater) SetMetrics(models.Metrics)

NullWidgetUpdater implements WidgetUpdater

type WidgetUpdater

type WidgetUpdater interface {
	SetMeta(models.Meta)
	SetMetrics(models.Metrics)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL