bandwidth

package
v0.0.179 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 10 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, events chan events.Event) *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() error

Jump to

Keyboard shortcuts

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