decode

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeJson

type DecodeJson struct {
	PrevRecords []interface{}
}

func (*DecodeJson) Decode

func (c *DecodeJson) Decode(in []interface{}) []config.GenericMap

Decode decodes input strings to a list of flow entries

type Decoder

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

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(in []interface{}) []config.GenericMap

Decode decodes input strings to a list of flow entries

Jump to

Keyboard shortcuts

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