handler

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func HelpMessage added in v0.2.0

func HelpMessage() string

Types

type AnalysisOptions added in v0.5.1

type AnalysisOptions struct {
	Geoip  bool
	Filter string
}

type CaptureOptions added in v0.5.1

type CaptureOptions struct {
	Count int
	Time  int
}

type Config added in v0.5.1

type Config struct {
	Analysis      AnalysisOptions
	Capture       CaptureOptions
	General       GeneralOptions
	IO            IOOptions
	Visualization VisualizationOptions
}

Config holds the parsed command-line options grouped by concern.

func Options added in v0.2.0

func Options(optArgs []string) *Config

Options parses the given argument list (including argv[0]) and returns the resulting configuration.

type GeneralOptions added in v0.5.1

type GeneralOptions struct {
	Help    bool
	Version bool
}

type IOOptions added in v0.5.1

type IOOptions struct {
	InterfaceName string
	OutputFile    string
	ReadFile      string
}

type LayerHandler

type LayerHandler func(gopacket.Packet) string

type VisualizationOptions added in v0.5.1

type VisualizationOptions struct {
	NoAscii bool
}

Jump to

Keyboard shortcuts

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