sfserver

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: 15 Imported by: 0

Documentation

Overview

Package sfserver provides sflow 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

Types

type SflowServer

type SflowServer struct {
	// Output is the channel used to send flows to the annotator layer
	Output chan *netflow.Flow
	// contains filtered or unexported fields
}

SflowServer represents a sflow Collector instance

func New

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

New creates and starts a new `SflowServer` instance

func (*SflowServer) Close

func (sfs *SflowServer) 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