Documentation
¶
Index ¶
- type CollectingProcess
- func (cp *CollectingProcess) GetAddress() net.Addr
- func (cp *CollectingProcess) GetMsgChan() <-chan *entities.Message
- func (cp *CollectingProcess) GetNumConnToCollector() int64
- func (cp *CollectingProcess) GetNumRecordsReceived() int64
- func (cp *CollectingProcess) Start()
- func (cp *CollectingProcess) Stop()
- type CollectorInput
- type DecodingMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectingProcess ¶ added in v0.3.1
type CollectingProcess struct {
// contains filtered or unexported fields
}
func InitCollectingProcess ¶
func InitCollectingProcess(input CollectorInput) (*CollectingProcess, error)
func (*CollectingProcess) GetAddress ¶ added in v0.4.0
func (cp *CollectingProcess) GetAddress() net.Addr
func (*CollectingProcess) GetMsgChan ¶ added in v0.3.1
func (cp *CollectingProcess) GetMsgChan() <-chan *entities.Message
func (*CollectingProcess) GetNumConnToCollector ¶ added in v0.5.9
func (cp *CollectingProcess) GetNumConnToCollector() int64
func (*CollectingProcess) GetNumRecordsReceived ¶ added in v0.5.9
func (cp *CollectingProcess) GetNumRecordsReceived() int64
func (*CollectingProcess) Start ¶ added in v0.3.1
func (cp *CollectingProcess) Start()
func (*CollectingProcess) Stop ¶ added in v0.3.1
func (cp *CollectingProcess) Stop()
type CollectorInput ¶ added in v0.4.0
type CollectorInput struct { IsIPv6 bool IsEncrypted bool // Address needs to be provided in hostIP:port format. Address string // Protocol needs to be provided in lower case format. // We support "tcp" and "udp" protocols. Protocol string MaxBufferSize uint16 TemplateTTL uint32 // TODO: group following fields into struct to be reuse in exporter CACert []byte ServerCert []byte ServerKey []byte NumExtraElements int // DecodingMode specifies how unknown information elements (in templates) are handled when // decoding. The default value is DecodingModeStrict for historical reasons. For most uses, // DecodingModeLenientKeepUnknown is the most appropriate mode. DecodingMode DecodingMode }
type DecodingMode ¶ added in v0.12.0
type DecodingMode string
DecodingMode specifies how unknown information elements (in templates) are handled when decoding. Unknown information elements are elements which are not part of the static registry included with the library. Note that regardless of the DecodingMode, data sets must always match the corresponding template.
const ( // DecodingModeStrict will cause decoding to fail when an unknown IE is encountered in a template. DecodingModeStrict DecodingMode = "Strict" // DecodingModeLenientKeepUnknown will accept unknown IEs in templates. When decoding the // corresponding field in a data record, the value will be preserved (as an octet array). DecodingModeLenientKeepUnknown DecodingMode = "LenientKeepUnknown" // DecodingModeLenientDropUnknown will accept unknown IEs in templates. When decoding the // corresponding field in a data record, the value will be dropped (information element will // not be present in the resulting Record). Be careful when using this mode as the IEs // included in the resulting Record will no longer match the received template. DecodingModeLenientDropUnknown DecodingMode = "LenientDropUnknown" )
Click to show internal directories.
Click to hide internal directories.