collector

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package collector repeatedly queries the netlink socket to discover measurement data about open TCP connections and sends that data down a channel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OneType added in v0.0.5

func OneType(inetType uint8) ([]*syscall.NetlinkMessage, error)

OneType handles the request and response for a single type, e.g. INET or INET6 TODO maybe move this to top level?

func Run

func Run(ctx context.Context, reps int, svrChan chan<- netlink.MessageBlock, cl saver.CacheLogger, skipLocal bool) (localCount, errCount int)

Run the collector, either for the specified number of loops, or, if the number specified is infinite, run forever.

Types

This section is empty.

Jump to

Keyboard shortcuts

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