pcapsocket

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProbe

func NewProbe(ctx probes.Context, bundle *probe.Bundle) (probes.FlowProbeHandler, error)

NewProbe returns a new pcapsocket probe

Types

type Probe

type Probe struct {
	Ctx probes.Context
	// contains filtered or unexported fields
}

Probe describes a TCP packet listener that inject packets in a flowtable

type ProbeHandler

type ProbeHandler struct {
	Ctx probes.Context
	// contains filtered or unexported fields
}

ProbeHandler describes a Pcap socket probe in the graph

func (*ProbeHandler) CaptureTypes

func (p *ProbeHandler) CaptureTypes() []string

CaptureTypes supported

func (*ProbeHandler) RegisterProbe

func (p *ProbeHandler) RegisterProbe(n *graph.Node, capture *types.Capture, e probes.ProbeEventHandler) (probes.Probe, error)

RegisterProbe registers a new probe in the graph

func (*ProbeHandler) Start

func (p *ProbeHandler) Start() error

Start the probe

func (*ProbeHandler) Stop

func (p *ProbeHandler) Stop()

Stop the probe

func (*ProbeHandler) UnregisterProbe

func (p *ProbeHandler) UnregisterProbe(n *graph.Node, e probes.ProbeEventHandler, fp probes.Probe) error

UnregisterProbe a probe

Jump to

Keyboard shortcuts

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