Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptureResult ¶
type Capturer ¶
type Capturer interface { SetBPFFilter(expr string) error Capture(ctx context.Context, resultC chan<- CaptureResult) }
func NewEthernetCapturer ¶
NewEthernetCapturer creates a Capturer which captures packets for the device Ethernet device specified.
If device is "any", a captuerer for all devices on the host is returned.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.