utils

package
v0.0.0-...-8a8a2d9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HumanReadableJSONMarshal

func HumanReadableJSONMarshal(msg *ExtendedFlowMessage) ([]byte, error)

func HumanReadableJSONMarshalIndent

func HumanReadableJSONMarshalIndent(msg *ExtendedFlowMessage, prefix, indent string) ([]byte, error)

Types

type Enricher

type Enricher interface {
	Enrich([]*ExtendedFlowMessage)
}

type ExtendedFlowMessage

type ExtendedFlowMessage struct {
	Metadata map[string]interface{} `json:"Metadata,omitempty"`
	*flowmessage.FlowMessage
}

func ConvertMessages

func ConvertMessages(msgs []*flowmessage.FlowMessage) []*ExtendedFlowMessage

type ExtendedTransport

type ExtendedTransport interface {
	Publish([]*ExtendedFlowMessage)
}

type FlowMessageAlias

type FlowMessageAlias struct {
	SrcAddr        string `json:"SrcAddr,omitempty"`
	DstAddr        string `json:"DstAddr,omitempty"`
	NextHop        string `json:"NextHop,omitempty"`
	SamplerAddress string `json:"SamplerAddress,omitempty"`
	*ExtendedFlowMessage
}

Jump to

Keyboard shortcuts

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