package
4.1.3+incompatible
Repository: https://github.com/els0r/goprobe.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

InitManager initializes a CaptureManager and the underlying writeout logic Used as primary entrypoint for the goProbe binary and E2E tests.
NewFlow creates a new flow based on the packet.
NewFlowLog creates a new flow log for storing flows.
NewLocalBuffer initializes a new local buffer using a global memory pool and a maximum buffer size.
NewLocalBufferPool initializes a new local buffer pool.
NewManager creates a new CaptureManager.
ParsePacketV4 processes / extracts all information contained in the v6 IP layer received from a capture source and converts it to a hash and flags to be added to the flow map.
ParsePacketV6 processes / extracts all information contained in the v6 IP layer received from a capture source and converts it to a hash and flags to be added to the flow map.
ResetCountersTestingOnly allows to externally reset all Prometheus counters (e.g.
WithLocalBuffers sets one or multiple local buffers for the capture manager.
WithSkipWriteoutSchedule disables scheduled writeouts.
WithSourceInitFn sets a custom function used to initialize a new capture.

# Constants

MaxIfaces is the maximum number of interfaces we can monitor.

# Variables

ErrLocalBufferOverflow signifies that the local packet buffer is full.

# Structs

Capture captures and logs flow data for all traffic on a given network interface.
FlowInfo summarizes information about a given flow.
FlowLog stores flows.
LocalBuffer denotes a local packet buffer used to temporarily capture packets from the source (e.g.
LocalBufferPool provides a wrapper around a MemPoolLimitUnique with a maximum size.
Manager manages a set of Capture instances.
RunGroup wraps the common waitgroup setup for go routines that need to finish before continuing with instruction execution.

# Type aliases

Flow stores a goProbe flow (alias for types.Counters to allow for extension with flow specific methods).
FlowInfos is a list of FlowInfo objects.
ManagerOption denotes a functional option for any CaptureManager.
Source redefines any slimcap zero copy source interface type.