Back to

Package collectors

Latest Go to latest

The highest tagged major version is .

Published: Jun 29, 2020 | License: MIT | Module:


func CollectorStats

func CollectorStats()

type Collector

type Collector interface {
	Start() error
	Stop() error
	Packets() <-chan packets.PacketSummary

type PcapCollector

type PcapCollector struct {
	// contains filtered or unexported fields

func NewPcapCollector

func NewPcapCollector() (collector *PcapCollector)

func (*PcapCollector) Connect

func (c *PcapCollector) Connect(remote net.IPAddr) error

connect to a remote mapper over gRPC

func (*PcapCollector) ListNics

func (c *PcapCollector) ListNics()

check available NICs to match against requested one

func (*PcapCollector) LoadFile

func (c *PcapCollector) LoadFile(filename string) (err error)

Load PCap data from file and start piping it into the collector channel

func (*PcapCollector) NewCapturePoint

func (c *PcapCollector) NewCapturePoint() (err error)

func (*PcapCollector) OpenNic

func (c *PcapCollector) OpenNic(nicname string) (err error)

Open local NIC as Packet Data Source

func (*PcapCollector) Packets

func (c *PcapCollector) Packets() <-chan packets.PacketSummary

Interface Declaration to pull packets from the Collector

func (*PcapCollector) Start

func (c *PcapCollector) Start(point *capture.CapturePoint)

func (*PcapCollector) Stop

func (c *PcapCollector) Stop()

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier