nettracer

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSCache

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

func NewDNSCache

func NewDNSCache() *DNSCache

type DNSRequest

type DNSRequest struct {
	PID      uint32
	Type     string
	FQDN     string
	Status   string
	Duration time.Duration
}

type Destination

type Destination struct {
	Destination       string
	ActualDestination string
	ActiveCount       int64
	SuccessfulCount   int64
	FailedCount       int64
}

type ETWTracer

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

func NewETWTracer

func NewETWTracer(onConnect func(*NetworkEvent), onDNS func(string, []netaddr.IP), onDNSRequest func(*DNSRequest)) (*ETWTracer, error)

func (*ETWTracer) Stop

func (t *ETWTracer) Stop()

type ListenAddr

type ListenAddr struct {
	Addr string
	Port uint16
	PID  uint32
}

type NetworkEvent

type NetworkEvent struct {
	PID            uint32
	RemoteAddrPort string
	Succeeded      bool
}

type ServiceNetStats

type ServiceNetStats struct {
	ListenAddrs  []ListenAddr
	Destinations []*Destination
	ActiveConns  int64
}

type Tracker

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

func NewTracker

func NewTracker(onDNSRequest func(*DNSRequest)) *Tracker

func (*Tracker) GetServiceStats

func (t *Tracker) GetServiceStats(pids []uint32) *ServiceNetStats

func (*Tracker) RefreshConnections

func (t *Tracker) RefreshConnections()

func (*Tracker) RetainPIDs

func (t *Tracker) RetainPIDs(livePIDs map[uint32]int)

func (*Tracker) Stop

func (t *Tracker) Stop()

Jump to

Keyboard shortcuts

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