capture

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaptureType

type CaptureType string
const (
	CaptureTypePcap     CaptureType = "pcap"
	CaptureTypePcapFile CaptureType = "pcap-file"
	CaptureTypeAfpacket CaptureType = "afpacket"
)

type SNICapturer

type SNICapturer struct {
	// contains filtered or unexported fields
}

func NewSNICapturer

func NewSNICapturer(captureType CaptureType, ifaceName, bpf string) *SNICapturer

func (*SNICapturer) Output

func (s *SNICapturer) Output() <-chan Signal

func (*SNICapturer) Start

func (s *SNICapturer) Start(ctx context.Context, log *zap.Logger) error

type Signal

type Signal struct {
	Type   SignalType
	Error  error
	FlowID string

	TLSServerName string

	PPSourceAddr      net.Addr
	PPDestinationAddr net.Addr
	PPVersion         string
}

func (Signal) String

func (s Signal) String() string

type SignalType

type SignalType int
const (
	SignalTypeProxyProtocolHeader SignalType = iota
	SignalTypeTLSClientHello      SignalType = iota
	SignalTypeError               SignalType = iota
)

func (SignalType) String

func (st SignalType) String() string

Jump to

Keyboard shortcuts

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