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 }
Click to show internal directories.
Click to hide internal directories.