bwmonitor

package
v0.0.0-...-dd72184 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BandwidthMonitor

type BandwidthMonitor struct {
	// contains filtered or unexported fields
}

func NewBandwidthMonitor

func NewBandwidthMonitor(dev string) *BandwidthMonitor

func (*BandwidthMonitor) GetRate

func (bw *BandwidthMonitor) GetRate() float64

func (*BandwidthMonitor) Run

func (bw *BandwidthMonitor) Run(stop chan bool)

type BandwidthUsageMonitor

type BandwidthUsageMonitor struct {
	*BandwidthMonitor
	// contains filtered or unexported fields
}

func NewBandwidthUsageMonitor

func NewBandwidthUsageMonitor(dev string, bwLimit float64) *BandwidthUsageMonitor

func (*BandwidthUsageMonitor) GetUsage

func (bu *BandwidthUsageMonitor) GetUsage() float64

Jump to

Keyboard shortcuts

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