bandwidth

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatCounter

type StatCounter struct {
	RXBandwidth uint64
	TXBandwidth uint64
	// contains filtered or unexported fields
}

func (*StatCounter) Start

func (s *StatCounter) Start() error

func (*StatCounter) Stop

func (s *StatCounter) Stop()

type StatCounterManager

type StatCounterManager struct {
	TotalRXMB        float64
	TotalTXMB        float64
	TotalRXBandwidth uint64
	TotalTXBandwidth uint64
	// contains filtered or unexported fields
}

func NewStatCounterManager

func NewStatCounterManager(db *gorm.DB) *StatCounterManager

func (*StatCounterManager) Add

func (s *StatCounterManager) Add(iface string) error

func (*StatCounterManager) Get

func (s *StatCounterManager) Get(iface string) *StatCounter

func (*StatCounterManager) GetAll

func (s *StatCounterManager) GetAll() []*StatCounter

func (*StatCounterManager) Remove

func (s *StatCounterManager) Remove(iface string) error

func (*StatCounterManager) Start

func (s *StatCounterManager) Start()

func (*StatCounterManager) Stop

func (s *StatCounterManager) Stop()

Jump to

Keyboard shortcuts

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