netflow

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Overview

Package netflow implements the Format interface for raw netflow input (not reencoded)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func StartDriver

func StartDriver(ctx context.Context, hostname string, port int, legacy bool) *Driver

StartDriver starts a new go routine to handle netflow connections

func (*Driver) Next

func (gf *Driver) Next() (map[string]interface{}, error)

type TransportWrapper

type TransportWrapper struct {
	// contains filtered or unexported fields
}

TransportWrapper is an implementation of the goflow2 transport interface

func NewWrapper

func NewWrapper(c chan map[string]interface{}) *TransportWrapper

func (*TransportWrapper) Send

func (w *TransportWrapper) Send(key, data []byte) error

Jump to

Keyboard shortcuts

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