Documentation ¶
Index ¶
- Variables
- func FindPacketSlice(e ranger.Envelope, span nano.Span) (slicer.Slice, error)
- func GenerateSlices(index Index, span nano.Span) ([]slicer.Slice, error)
- func NewSlicer(seeker io.ReadSeeker, index Index, span nano.Span) (*slicer.Reader, error)
- type Flow
- type Index
- type PacketFilter
- type Search
- type SearchReader
- type Section
- type Socket
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoPcapsFound = errors.New("no packets found")
ErrNoPcapsFound is an error indicating no packets have been found.
Functions ¶
func FindPacketSlice ¶
func GenerateSlices ¶
GenerateSlices takes an index and time span and generates a list of slices that should be read to enumerate the relevant chunks of an underlying pcap file. Extra packets may appear in the resulting stream but all packets that fall within the time range will be produced, i.e., another layering of time filtering should be applied to resulting packets.
Types ¶
type Index ¶
type Index []Section
func CreateIndex ¶
CreateIndex creates an index for a pcap presented as an io.Reader. The size parameter indicates how many bins the index should contain.
func CreateIndexWithWarnings ¶
type PacketFilter ¶
type Search ¶
type Search struct {
// contains filtered or unexported fields
}
Search describes the parameters for a packet search over a pcap file.
func NewRangeSearch ¶
type SearchReader ¶
type SearchReader struct { Search // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.