Documentation
¶
Overview ¶
Package netchart implements basic chart to generate small minimalistic chart of network usage.
Index ¶
- type Chart
- type Recorder
- func (r *Recorder) BytesRead() int
- func (r *Recorder) BytesWritten() int
- func (r *Recorder) Read() []float64
- func (r *Recorder) ReadSinceLast() int
- func (r *Recorder) RecordInterval() time.Duration
- func (r *Recorder) Start()
- func (r *Recorder) Stop()
- func (r *Recorder) Written() []float64
- func (r *Recorder) WrittenSinceLast() int
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
func NewRecorder ¶
NewRecorder creates a default Recorder TODO: Decrease detalization for old data as the time goes on to allow for longer ranges charts.
func (*Recorder) BytesWritten ¶
func (*Recorder) ReadSinceLast ¶
ReadSinceLast returns bytes read from last call (upload).
func (*Recorder) RecordInterval ¶
func (*Recorder) WrittenSinceLast ¶
WrittenSinceLast returns bytes written from last call (download).
Click to show internal directories.
Click to hide internal directories.