network

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapProcNetCounters

func MapProcNetCounters(raw *sysinfotypes.NetworkCountersInfo) mapstr.M

MapProcNetCounters converts the NetworkCountersInfo struct into a MapStr acceptable for sending upstream

func MapProcNetCountersWithFilter added in v0.4.5

func MapProcNetCountersWithFilter(raw *sysinfotypes.NetworkCountersInfo, filter []string) mapstr.M

MapProcNetCountersWithFilter converts the NetworkCountersInfo to a formatted mapstring, and applies a filter to the resulting map. The filter should be an array key values, taken from /proc/PID/net/snmp or /proc/PID/net/netstat

Types

This section is empty.

Jump to

Keyboard shortcuts

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