Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ring ¶
type Ring struct {
// contains filtered or unexported fields
}
type Tracker ¶
type Tracker struct {
PeakDown float64
PeakUp float64
TodayDown float64 // bytes
TodayUp float64 // bytes
Year int
Month time.Month
Day int
}
Tracker keeps session peak and today totals.
func NewTracker ¶
func NewTracker() *Tracker
func (*Tracker) Record ¶
Record updates peaks and today totals. intervalSecs is the sample interval.
func (*Tracker) ResetPeaks ¶
func (t *Tracker) ResetPeaks()
Click to show internal directories.
Click to hide internal directories.