conntrack

package
v0.1.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHash

func ComputeHash(flowLog config.GenericMap, keyDefinition api.KeyDefinition, hasher hash.Hash64) (totalHashType, error)

ComputeHash computes the hash of a flow log according to keyDefinition. Two flow logs will have the same hash if they belong to the same connection.

func NewConnBuilder

func NewConnBuilder() *connBuilder

Types

type ConnectionTracker

type ConnectionTracker interface {
	Track(flowLogs []config.GenericMap) []config.GenericMap
}

func NewConnectionTrack

func NewConnectionTrack(config api.ConnTrack, clock clock.Clock) (ConnectionTracker, error)

NewConnectionTrack creates a new connection track instance

Jump to

Keyboard shortcuts

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