Documentation ¶
Index ¶
Constants ¶
View Source
const ( PSAMPLE_GENL_NAME = "psample" PSAMPLE_NL_MCGRP_SAMPLE_NAME = "packets" )
View Source
const ( PSAMPLE_ATTR_IIFINDEX = iota PSAMPLE_ATTR_OIFINDEX PSAMPLE_ATTR_ORIGSIZE PSAMPLE_ATTR_SAMPLE_GROUP PSAMPLE_ATTR_GROUP_SEQ PSAMPLE_ATTR_SAMPLE_RATE PSAMPLE_ATTR_DATA PSAMPLE_ATTR_GROUP_REFCOUNT PSAMPLE_ATTR_TUNNEL PSAMPLE_ATTR_PAD PSAMPLE_ATTR_OUT_TC /* u16 */ PSAMPLE_ATTR_OUT_TC_OCC /* u64, bytes */ PSAMPLE_ATTR_LATENCY /* u64, nanoseconds */ PSAMPLE_ATTR_TIMESTAMP /* u64, nanoseconds */ PSAMPLE_ATTR_PROTO /* u16 */ PSAMPLE_ATTR_USER_COOKIE )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SampleReader ¶
type SampleReader struct {
// contains filtered or unexported fields
}
func NewSampleReader ¶
func NewSampleReader(enableDecoder, logCookie, printFullPacket, addOVSCollector bool, srcIP, dstIP, outputFile string) *SampleReader
func (*SampleReader) ReadSamples ¶
func (r *SampleReader) ReadSamples(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.