sflow

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2016 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AgentAlreadyAllocated error = errors.New("agent already allocated for this uuid")
)

Functions

This section is empty.

Types

type SFlowAgent

type SFlowAgent struct {
	UUID                string
	Addr                string
	Port                int
	FlowTable           *flow.Table
	FlowProbeNodeSetter flow.FlowProbeNodeSetter
}

func NewSFlowAgent

func NewSFlowAgent(u string, a string, p int, ft *flow.Table) *SFlowAgent

func NewSFlowAgentFromConfig

func NewSFlowAgentFromConfig(u string, ft *flow.Table) (*SFlowAgent, error)

func (*SFlowAgent) Flush added in v0.3.0

func (sfa *SFlowAgent) Flush()

func (*SFlowAgent) GetTarget

func (sfa *SFlowAgent) GetTarget() string

func (*SFlowAgent) SetFlowProbeNodeSetter added in v0.4.0

func (sfa *SFlowAgent) SetFlowProbeNodeSetter(p flow.FlowProbeNodeSetter)

func (*SFlowAgent) Start

func (sfa *SFlowAgent) Start()

func (*SFlowAgent) Stop

func (sfa *SFlowAgent) Stop()

type SFlowAgentAllocator added in v0.3.0

type SFlowAgentAllocator struct {
	sync.RWMutex
	FlowProbeNodeSetter flow.FlowProbeNodeSetter
	Addr                string
	MinPort             int
	MaxPort             int
	// contains filtered or unexported fields
}

func NewSFlowAgentAllocator added in v0.3.0

func NewSFlowAgentAllocator() *SFlowAgentAllocator

func (*SFlowAgentAllocator) Agents added in v0.3.0

func (a *SFlowAgentAllocator) Agents() []*SFlowAgent

func (*SFlowAgentAllocator) Alloc added in v0.3.0

func (*SFlowAgentAllocator) Release added in v0.3.0

func (a *SFlowAgentAllocator) Release(uuid string)

func (*SFlowAgentAllocator) ReleaseAll added in v0.3.0

func (a *SFlowAgentAllocator) ReleaseAll()

Jump to

Keyboard shortcuts

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