sflow

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package sfserver provides sflow collection services via UDP and passes flows into aggregator layer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(fl *flow.Flow)

Dump dumps a flow on the screen

Types

type InterfaceResolver

type InterfaceResolver interface {
	Resolve(agent bnet.IP, ifID uint32) string
}

type SflowServer

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

SflowServer represents a sflow Collector instance

func New

func New(listen string, numReaders int, output chan []*flow.Flow, ifResolver InterfaceResolver) (*SflowServer, error)

New creates and starts a new `SflowServer` instance

func (*SflowServer) Stop

func (sfs *SflowServer) Stop()

Stop 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