custom1

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flow

type Flow struct {
	UUID             string
	LayersPath       string
	Network          *flow.FlowLayer
	Transport        *flow.TransportLayer
	LastUpdateMetric *flow.FlowMetric
	Metric           *flow.FlowMetric
	Start            int64
	Last             int64
	FinishType       flow.FlowFinishType
}

Flow represents a transformed flow

type FlowTransformer

type FlowTransformer struct {
}

FlowTransformer is a custom transformer for flows

func New

func New() *FlowTransformer

New returns a new Custom1Marshaller

func (*FlowTransformer) Transform

func (m *FlowTransformer) Transform(f *flow.Flow) interface{}

Transform transforms a flow before being stored

Source Files

  • custom1.go

Jump to

Keyboard shortcuts

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