stat

package
v0.0.0-...-7cfb5ad Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	ID uuid.UUID

	Live bool
	Src  string

	SnapLen     int32
	Promiscuous bool
	BPFFilter   string

	Captures  []gopacket.LayerType
	Assembles []assemble.AssembleType

	State     WorkerState
	CreatedAt time.Time
	Timeout   time.Duration
}

type WorkerState

type WorkerState uint8
const (
	WorkerStateInit WorkerState = 1 + iota
	WorkerStateUp
	WorkerStateFin
	WorkerStateCancel
)

Jump to

Keyboard shortcuts

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