collectors

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectorStats

func CollectorStats()

Types

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()

Jump to

Keyboard shortcuts

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