decode

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PBFlowToMap added in v0.1.4

func PBFlowToMap(flow *pbflow.Record) config.GenericMap

Types

type DecodeJson

type DecodeJson struct {
}

func (*DecodeJson) Decode

func (c *DecodeJson) Decode(line []byte) (config.GenericMap, error)

Decode decodes input strings to a list of flow entries

type Decoder

type Decoder interface {
	Decode(in []byte) (config.GenericMap, error)
}

func GetDecoder

func GetDecoder(params api.Decoder) (Decoder, error)

func NewDecodeJson

func NewDecodeJson() (Decoder, error)

NewDecodeJson create a new decode

type Protobuf

type Protobuf struct {
}

Protobuf decodes protobuf flow records definitions, as forwarded by ingest.NetObservAgent, into a Generic Map that follows the same naming conventions as the IPFIX flows from ingest.IngestCollector

func NewProtobuf

func NewProtobuf() (*Protobuf, error)

func (*Protobuf) Decode

func (p *Protobuf) Decode(rawFlow []byte) (config.GenericMap, error)

Decode decodes the protobuf raw flows and returns a list of GenericMaps representing all the flows there

Jump to

Keyboard shortcuts

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