tracepacketloss

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName           = "insp_packetloss"
	PACKETLOSS_ABNORMAL  = "packetloss_abnormal"
	PACKETLOSS_TOTAL     = "packetloss_total"
	PACKETLOSS_NETFILTER = "packetloss_netfilter"
	PACKETLOSS_TCPSTATEM = "packetloss_tcpstatm"
	PACKETLOSS_TCPRCV    = "packetloss_tcprcv"
	PACKETLOSS_TCPHANDLE = "packetloss_tcphandle"

	PACKETLOSS = "PACKETLOSS"
)

nolint

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketLossProbe

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

func GetProbe

func GetProbe() *PacketLossProbe

func (*PacketLossProbe) Close

func (p *PacketLossProbe) Close(probeType proto.ProbeType) error

func (*PacketLossProbe) Collect

func (p *PacketLossProbe) Collect(ctx context.Context) (map[string]map[uint32]uint64, error)

func (*PacketLossProbe) GetEventNames

func (p *PacketLossProbe) GetEventNames() []string

func (*PacketLossProbe) GetMetricNames

func (p *PacketLossProbe) GetMetricNames() []string

func (*PacketLossProbe) Name

func (p *PacketLossProbe) Name() string

func (*PacketLossProbe) Ready

func (p *PacketLossProbe) Ready() bool

func (*PacketLossProbe) Register

func (p *PacketLossProbe) Register(receiver chan<- proto.RawEvent) error

func (*PacketLossProbe) Start

func (p *PacketLossProbe) Start(ctx context.Context, probeType proto.ProbeType)

Jump to

Keyboard shortcuts

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