procsoftnet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SNProcessed = "processed"
	SNDropped   = "dropped"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcSoftnet

type ProcSoftnet struct {
}

func (*ProcSoftnet) CollectOnce added in v1.0.0

func (s *ProcSoftnet) CollectOnce() (map[string]map[uint32]uint64, error)

func (*ProcSoftnet) Start

func (s *ProcSoftnet) Start(_ context.Context) error

func (*ProcSoftnet) Stop added in v1.0.0

func (s *ProcSoftnet) Stop(_ context.Context) error

type SoftnetStat

type SoftnetStat struct {
	// Number of processed packets.
	Processed uint32
	// Number of dropped packets.
	Dropped uint32
	// Number of times processing packets ran out of quota.
	TimeSqueezed uint32
}

Jump to

Keyboard shortcuts

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