Documentation ¶
Index ¶
- func ConvertNetFlowDataSet(version uint16, baseTime uint32, uptime uint32, record []netflow.DataField) *flowmessage.FlowMessage
- func ConvertNetFlowLegacyRecord(baseTime uint32, uptime uint32, record netflowlegacy.RecordsNetFlowV5) *flowmessage.FlowMessage
- func DecodeUNumber(b []byte, out interface{}) error
- func EnrichWithAsn(fmsg *flowmessage.FlowMessage, config *SFlowProducerConfig)
- func GetSFlowFlowSamples(packet *sflow.Packet) []interface{}
- func NetFlowLookFor(dataFields []netflow.DataField, typeId uint16) (bool, interface{})
- func NetFlowPopulate(dataFields []netflow.DataField, typeId uint16, addr interface{}) bool
- func ParseSampledHeader(flowMessage *flowmessage.FlowMessage, sampledHeader *sflow.SampledHeader) error
- func ParseSampledHeaderConfig(flowMessage *flowmessage.FlowMessage, sampledHeader *sflow.SampledHeader, ...) error
- func ProcessMessageNetFlow(msgDec interface{}, samplingRateSys SamplingRateSystem) ([]*flowmessage.FlowMessage, error)
- func ProcessMessageNetFlowLegacy(msgDec interface{}) ([]*flowmessage.FlowMessage, error)
- func ProcessMessageSFlow(msgDec interface{}) ([]*flowmessage.FlowMessage, error)
- func ProcessMessageSFlowConfig(msgDec interface{}, config *SFlowProducerConfig) ([]*flowmessage.FlowMessage, error)
- func SearchNetFlowDataSets(version uint16, baseTime uint32, uptime uint32, ...) []*flowmessage.FlowMessage
- func SearchNetFlowDataSetsRecords(version uint16, baseTime uint32, uptime uint32, ...) []*flowmessage.FlowMessage
- func SearchNetFlowLegacyRecords(baseTime uint32, uptime uint32, dataRecords []netflowlegacy.RecordsNetFlowV5) []*flowmessage.FlowMessage
- func SearchNetFlowOptionDataSets(dataFlowSet []netflow.OptionsDataFlowSet) (uint32, bool)
- func SearchSFlowSamples(samples []interface{}) []*flowmessage.FlowMessage
- func SearchSFlowSamplesConfig(samples []interface{}, config *SFlowProducerConfig) []*flowmessage.FlowMessage
- func SplitIPFIXSets(packetIPFIX netflow.IPFIXPacket) ([]netflow.DataFlowSet, []netflow.TemplateFlowSet, ...)
- func SplitNetFlowSets(packetNFv9 netflow.NFv9Packet) ([]netflow.DataFlowSet, []netflow.TemplateFlowSet, ...)
- type SFlowProducerConfig
- type SamplingRateSystem
- type SingleSamplingRateSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertNetFlowDataSet ¶
func ConvertNetFlowDataSet(version uint16, baseTime uint32, uptime uint32, record []netflow.DataField) *flowmessage.FlowMessage
func ConvertNetFlowLegacyRecord ¶
func ConvertNetFlowLegacyRecord(baseTime uint32, uptime uint32, record netflowlegacy.RecordsNetFlowV5) *flowmessage.FlowMessage
func DecodeUNumber ¶
func EnrichWithAsn ¶
func EnrichWithAsn(fmsg *flowmessage.FlowMessage, config *SFlowProducerConfig)
func GetSFlowFlowSamples ¶
func NetFlowLookFor ¶
func NetFlowPopulate ¶
func ParseSampledHeader ¶
func ParseSampledHeader(flowMessage *flowmessage.FlowMessage, sampledHeader *sflow.SampledHeader) error
func ParseSampledHeaderConfig ¶
func ParseSampledHeaderConfig(flowMessage *flowmessage.FlowMessage, sampledHeader *sflow.SampledHeader, config *SFlowProducerConfig) error
func ProcessMessageNetFlow ¶
func ProcessMessageNetFlow(msgDec interface{}, samplingRateSys SamplingRateSystem) ([]*flowmessage.FlowMessage, error)
Convert a NetFlow datastructure to a FlowMessage protobuf Does not put sampling rate
func ProcessMessageNetFlowLegacy ¶
func ProcessMessageNetFlowLegacy(msgDec interface{}) ([]*flowmessage.FlowMessage, error)
func ProcessMessageSFlow ¶
func ProcessMessageSFlow(msgDec interface{}) ([]*flowmessage.FlowMessage, error)
func ProcessMessageSFlowConfig ¶
func ProcessMessageSFlowConfig(msgDec interface{}, config *SFlowProducerConfig) ([]*flowmessage.FlowMessage, error)
func SearchNetFlowDataSets ¶
func SearchNetFlowDataSets(version uint16, baseTime uint32, uptime uint32, dataFlowSet []netflow.DataFlowSet) []*flowmessage.FlowMessage
func SearchNetFlowDataSetsRecords ¶
func SearchNetFlowDataSetsRecords(version uint16, baseTime uint32, uptime uint32, dataRecords []netflow.DataRecord) []*flowmessage.FlowMessage
func SearchNetFlowLegacyRecords ¶
func SearchNetFlowLegacyRecords(baseTime uint32, uptime uint32, dataRecords []netflowlegacy.RecordsNetFlowV5) []*flowmessage.FlowMessage
func SearchNetFlowOptionDataSets ¶
func SearchNetFlowOptionDataSets(dataFlowSet []netflow.OptionsDataFlowSet) (uint32, bool)
func SearchSFlowSamples ¶
func SearchSFlowSamples(samples []interface{}) []*flowmessage.FlowMessage
func SearchSFlowSamplesConfig ¶
func SearchSFlowSamplesConfig(samples []interface{}, config *SFlowProducerConfig) []*flowmessage.FlowMessage
func SplitIPFIXSets ¶
func SplitIPFIXSets(packetIPFIX netflow.IPFIXPacket) ([]netflow.DataFlowSet, []netflow.TemplateFlowSet, []netflow.IPFIXOptionsTemplateFlowSet, []netflow.OptionsDataFlowSet)
func SplitNetFlowSets ¶
func SplitNetFlowSets(packetNFv9 netflow.NFv9Packet) ([]netflow.DataFlowSet, []netflow.TemplateFlowSet, []netflow.NFv9OptionsTemplateFlowSet, []netflow.OptionsDataFlowSet)
Types ¶
type SFlowProducerConfig ¶
type SamplingRateSystem ¶
type SamplingRateSystem interface { GetSamplingRate(version uint16, obsDomainId uint32) (uint32, error) AddSamplingRate(version uint16, obsDomainId uint32, samplingRate uint32) }
func CreateSamplingSystem ¶
func CreateSamplingSystem() SamplingRateSystem
type SingleSamplingRateSystem ¶
type SingleSamplingRateSystem struct {
Sampling uint32
}
func (*SingleSamplingRateSystem) AddSamplingRate ¶
func (s *SingleSamplingRateSystem) AddSamplingRate(version uint16, obsDomainId uint32, samplingRate uint32)
func (*SingleSamplingRateSystem) GetSamplingRate ¶
func (s *SingleSamplingRateSystem) GetSamplingRate(version uint16, obsDomainId uint32) (uint32, error)
Click to show internal directories.
Click to hide internal directories.