packet

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packet

type Packet struct {
	segments.BaseSegment

	Method          string // required, default is "pcap", one of the available capture methods "pcapgo|pcap|pfring|file"
	Source          string // required, the name of the source to capture from, depending on the method an interface or file name is required
	Filter          string // optional, a BPF filter which is applied when using a libpcap-based method
	ActiveTimeout   string // optional, default is 30m
	InactiveTimeout string // optional, default is 15s
	// contains filtered or unexported fields
}

func (Packet) New

func (segment Packet) New(config map[string]string) segments.Segment

func (*Packet) Run

func (segment *Packet) Run(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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