Documentation ¶
Overview ¶
Package view contains the frontend for the client application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderBandwidth ¶
Types ¶
type GraphUpdater ¶
type GraphUpdater interface {
UpdateGraph(values []float64)
}
type GraphUpdaterFunc ¶
type GraphUpdaterFunc func(values []float64)
func (GraphUpdaterFunc) UpdateGraph ¶
func (f GraphUpdaterFunc) UpdateGraph(values []float64)
type SeriesBuilder ¶
type SeriesBuilder struct { Graph GraphUpdater WindowSize int // contains filtered or unexported fields }
SeriesBuilder can be used to constructs inputs for a View timeseries.
func (*SeriesBuilder) Update ¶
func (b *SeriesBuilder) Update(value float64)
type View ¶
type View struct {
// contains filtered or unexported fields
}
View is a text-based graphical user interface.
func (*View) UpdateClientGraph ¶
UpdateClientGraph updates the historical sending rate of the client graph.
func (*View) UpdateGauge ¶
UpdateGauge reports the current sending rate (in bits per second). The rendered value is relative to the max seen sending rate across all gauges.
func (*View) UpdateServerGauge ¶ added in v0.1.2
UpdateServerGauge reports the current receiving rate (in bits per second). The rendered value is relative to the max seen sending/receiving rate across all gauges.
func (*View) UpdateServerGraph ¶
UpdateServerGraph updates the historical sending rate of the server graph.
Click to show internal directories.
Click to hide internal directories.