ipfix

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIPFIXDataRecord

func NewIPFIXDataRecord(tempID uint16) *ipfixDataRecord

func NewIPFIXExportingProcess

func NewIPFIXExportingProcess(collector net.Addr, obsID uint32, tempRefTimeout uint32) (*ipfixExportingProcess, error)

func NewIPFIXRegistry added in v0.10.0

func NewIPFIXRegistry() *ipfixRegistry

func NewIPFIXTemplateRecord

func NewIPFIXTemplateRecord(elementCount uint16, tempID uint16) *ipfixTemplateRecord

Types

type IPFIXExportingProcess

type IPFIXExportingProcess interface {
	NewTemplateID() uint16
	AddRecordAndSendMsg(setType ipfixentities.ContentType, record ipfixentities.Record) (int, error)
	CloseConnToCollector()
}

IPFIXExportingProcess interface is added to facilitate unit testing without involving the code from go-ipfix library.

type IPFIXRecord

type IPFIXRecord interface {
	GetRecord() ipfixentities.Record
	PrepareRecord() (uint16, error)
	AddInfoElement(element *ipfixentities.InfoElement, val interface{}) (uint16, error)
	GetBuffer() *bytes.Buffer
	GetTemplateElements() []*ipfixentities.InfoElement
	GetFieldCount() uint16
}

IPFIXRecord interface is added to facilitate unit testing without involving the code from go-ipfix library.

type IPFIXRegistry added in v0.10.0

type IPFIXRegistry interface {
	LoadRegistry()
	GetInfoElement(name string, enterpriseID uint32) (*ipfixentities.InfoElement, error)
}

IPFIXRegistry interface is added to facilitate unit testing without involving the code from go-ipfix library.

Directories

Path Synopsis
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.

Jump to

Keyboard shortcuts

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