Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExportingProcess ¶
type ExportingProcess struct {
// contains filtered or unexported fields
}
- Tested one exportingProcess process per exporter. Can support multiple collector scenario by creating different instances of exporting process. Need to be tested
- Only one observation point per observation domain is supported, so observation point ID not defined.
- Supports only TCP session; SCTP and UDP is not supported.
TODO:UDP needs to send MTU size packets as per RFC7011
func InitExportingProcess ¶
func InitExportingProcess(collectorAddr net.Addr, obsID uint32, tempRefTimeout uint32) (*ExportingProcess, error)
InitExportingProcess takes in collector address(net.Addr format), obsID(observation ID) and tempRefTimeout (template refresh timeout). tempRefTimeout is applicable only for collectors listening over UDP; unit is seconds. For TCP, you can pass any value. For UDP, if 0 is passed, consider 1800s as default. TODO: Get obsID, tempRefTimeout as args which can be of dynamic size supporting both TCP and UDP.
func (*ExportingProcess) AddSetAndSendMsg ¶ added in v0.3.0
func (ep *ExportingProcess) AddSetAndSendMsg(setType entities.ContentType, set entities.Set) (int, error)
func (*ExportingProcess) CloseConnToCollector ¶
func (ep *ExportingProcess) CloseConnToCollector()
func (*ExportingProcess) NewTemplateID ¶
func (ep *ExportingProcess) NewTemplateID() uint16
NewTemplateID is called to get ID when creating new template record.
Click to show internal directories.
Click to hide internal directories.