statsview

package module
v0.0.0-...-636dcb4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Max10GPacketPerSec uint64 = (14880952)

Variables

This section is empty.

Functions

This section is empty.

Types

type SizeStats

type SizeStats struct {
	Broadcast      uint64 // Number of broadcast packets
	Multicast      uint64 // Number of multicast packets
	Size64         uint64 // Number of packets with size 64 bytes
	Size65To127    uint64 // Number of packets with size 65 to 127 bytes
	Size128To255   uint64 // Number of packets with size 128 to 255 bytes
	Size256To511   uint64 // Number of packets with size 256 to 511 bytes
	Size512To1023  uint64 // Number of packets with size 512 to 1023 bytes
	Size1024To1518 uint64 // Number of packets with size 1024 to 1518 bytes
}

type StatsView

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

func Create

func Create(portCnt uint16, flex *kview.Flex, tabChar rune) *StatsView

func (*StatsView) DisplayStats

func (sv *StatsView) DisplayStats()

func (*StatsView) RxPercentArray

func (sv *StatsView) RxPercentArray() []float64

func (*StatsView) TableView

func (sv *StatsView) TableView() *kview.Table

func (*StatsView) TxPercentArray

func (sv *StatsView) TxPercentArray() []float64

func (*StatsView) UpdateStats

func (sv *StatsView) UpdateStats()

Jump to

Keyboard shortcuts

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