filter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright (c) 2025 Tobias Schäfer. All rights reserved. Licensed under the MIT License, see LICENSE file in the project root for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	EventTypes []string
	Protocols  []string
	Networks   FilterNetworks
	Addresses  FilterAddresses
	Ports      FilterPorts
}

func (*Filter) Apply

func (f *Filter) Apply(event conntrack.Event) bool

type FilterAddresses added in v0.2.0

type FilterAddresses struct {
	Destinations []string
	Sources      []string
}

type FilterNetworks added in v0.2.0

type FilterNetworks struct {
	Destinations []string
	Sources      []string
}

type FilterPorts added in v0.2.0

type FilterPorts struct {
	Destinations []uint
	Sources      []uint
}

Jump to

Keyboard shortcuts

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