nfserver

package
v0.0.0-...-6cd304b Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package nfserver provides netflow collection services via UDP and passes flows into annotator layer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(fl *netflow.Flow)

Dump dumps a flow on the screen

func DumpTemplate

func DumpTemplate(tmpl *nf9.TemplateRecords)

DumpTemplate dumps a template on the screen

Types

type NetflowServer

type NetflowServer struct {

	// receiver is the channel used to receive flows from the annotator layer
	Output chan *netflow.Flow
	// contains filtered or unexported fields
}

NetflowServer represents a Netflow Collector instance

func New

func New(numReaders int, config *config.Config, sampleRateCache *srcache.SamplerateCache) *NetflowServer

New creates and starts a new `NetflowServer` instance

func (*NetflowServer) Close

func (nfs *NetflowServer) Close()

Close closes the socket and stops the workers

Jump to

Keyboard shortcuts

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