Documentation
¶
Index ¶
- Constants
- func DecodeIP(payload *bytes.Buffer) (uint32, []byte, error)
- func DecodeMessage(payload *bytes.Buffer) (interface{}, error)
- func DecodeSample(header *SampleHeader, payload *bytes.Buffer) (interface{}, error)
- type CounterRecord
- type CounterSample
- type ErrorDataFormat
- type ErrorDecodingSFlow
- type ErrorIPVersion
- type ErrorVersion
- type EthernetCounters
- type ExpandedFlowSample
- type ExtendedGateway
- type ExtendedRouter
- type ExtendedSwitch
- type FlowRecord
- type FlowSample
- type IfCounters
- type Packet
- type RecordHeader
- type SampleHeader
- type SampledEthernet
- type SampledHeader
- type SampledIP_Base
- type SampledIPv4
- type SampledIPv6
Constants ¶
View Source
const ( FORMAT_EXT_SWITCH = 1001 FORMAT_EXT_ROUTER = 1002 FORMAT_EXT_GATEWAY = 1003 FORMAT_RAW_PKT = 1 FORMAT_ETH = 2 FORMAT_IPV4 = 3 FORMAT_IPV6 = 4 )
Variables ¶
This section is empty.
Functions ¶
func DecodeMessage ¶
func DecodeSample ¶
func DecodeSample(header *SampleHeader, payload *bytes.Buffer) (interface{}, error)
Types ¶
type CounterRecord ¶
type CounterRecord struct {
Header RecordHeader
Data interface{}
}
func DecodeCounterRecord ¶
func DecodeCounterRecord(header *RecordHeader, payload *bytes.Buffer) (CounterRecord, error)
type CounterSample ¶
type CounterSample struct {
Header SampleHeader
CounterRecordsCount uint32
Records []CounterRecord
}
type ErrorDataFormat ¶
type ErrorDataFormat struct {
// contains filtered or unexported fields
}
func NewErrorDataFormat ¶
func NewErrorDataFormat(dataformat uint32) *ErrorDataFormat
func (*ErrorDataFormat) Error ¶
func (e *ErrorDataFormat) Error() string
type ErrorDecodingSFlow ¶
type ErrorDecodingSFlow struct {
// contains filtered or unexported fields
}
func NewErrorDecodingSFlow ¶
func NewErrorDecodingSFlow(msg string) *ErrorDecodingSFlow
func (*ErrorDecodingSFlow) Error ¶
func (e *ErrorDecodingSFlow) Error() string
type ErrorIPVersion ¶
type ErrorIPVersion struct {
// contains filtered or unexported fields
}
func NewErrorIPVersion ¶
func NewErrorIPVersion(version uint32) *ErrorIPVersion
func (*ErrorIPVersion) Error ¶
func (e *ErrorIPVersion) Error() string
type ErrorVersion ¶
type ErrorVersion struct {
// contains filtered or unexported fields
}
func NewErrorVersion ¶
func NewErrorVersion(version uint32) *ErrorVersion
func (*ErrorVersion) Error ¶
func (e *ErrorVersion) Error() string
type EthernetCounters ¶
type EthernetCounters struct {
Dot3StatsAlignmentErrors uint32
Dot3StatsFCSErrors uint32
Dot3StatsSingleCollisionFrames uint32
Dot3StatsMultipleCollisionFrames uint32
Dot3StatsSQETestErrors uint32
Dot3StatsDeferredTransmissions uint32
Dot3StatsLateCollisions uint32
Dot3StatsExcessiveCollisions uint32
Dot3StatsInternalMacTransmitErrors uint32
Dot3StatsCarrierSenseErrors uint32
Dot3StatsFrameTooLongs uint32
Dot3StatsInternalMacReceiveErrors uint32
Dot3StatsSymbolErrors uint32
}
type ExpandedFlowSample ¶
type ExpandedFlowSample struct {
Header SampleHeader
SamplingRate uint32
SamplePool uint32
Drops uint32
InputIfFormat uint32
InputIfValue uint32
OutputIfFormat uint32
OutputIfValue uint32
FlowRecordsCount uint32
Records []FlowRecord
}
type ExtendedGateway ¶
type ExtendedRouter ¶
type ExtendedSwitch ¶
type FlowRecord ¶
type FlowRecord struct {
Header RecordHeader
Data interface{}
}
func DecodeFlowRecord ¶
func DecodeFlowRecord(header *RecordHeader, payload *bytes.Buffer) (FlowRecord, error)
type FlowSample ¶
type FlowSample struct {
Header SampleHeader
SamplingRate uint32
SamplePool uint32
Drops uint32
Input uint32
Output uint32
FlowRecordsCount uint32
Records []FlowRecord
}
type IfCounters ¶
type IfCounters struct {
IfIndex uint32
IfType uint32
IfSpeed uint64
IfDirection uint32
IfStatus uint32
IfInOctets uint64
IfInUcastPkts uint32
IfInMulticastPkts uint32
IfInBroadcastPkts uint32
IfInDiscards uint32
IfInErrors uint32
IfInUnknownProtos uint32
IfOutOctets uint64
IfOutUcastPkts uint32
IfOutMulticastPkts uint32
IfOutBroadcastPkts uint32
IfOutDiscards uint32
IfOutErrors uint32
IfPromiscuousMode uint32
}
type RecordHeader ¶
type SampleHeader ¶
type SampledEthernet ¶
type SampledHeader ¶
type SampledIP_Base ¶
type SampledIPv4 ¶
type SampledIPv4 struct {
Base SampledIP_Base
Tos uint32
}
type SampledIPv6 ¶
type SampledIPv6 struct {
Base SampledIP_Base
Priority uint32
}
Click to show internal directories.
Click to hide internal directories.