sflow

package
v0.28.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProbe

func NewProbe(ctx probes.Context, bundle *probe.Bundle) (probes.FlowProbeHandler, error)

NewProbe returns a new sFlow probe

Types

type ProbesHandler

type ProbesHandler struct {
	Ctx probes.Context
	// contains filtered or unexported fields
}

ProbesHandler describes a sFlow probe in the graph

func (*ProbesHandler) CaptureTypes

func (d *ProbesHandler) CaptureTypes() []string

CaptureTypes supported

func (*ProbesHandler) RegisterProbe

func (d *ProbesHandler) RegisterProbe(n *graph.Node, capture *types.Capture, e probes.ProbeEventHandler) (probes.Probe, error)

RegisterProbe registers a probe in the graph

func (*ProbesHandler) Start

func (d *ProbesHandler) Start() error

Start a probe

func (*ProbesHandler) Stop

func (d *ProbesHandler) Stop()

Stop a probe

func (*ProbesHandler) UnregisterProbe

func (d *ProbesHandler) UnregisterProbe(n *graph.Node, e probes.ProbeEventHandler, p probes.Probe) error

UnregisterProbe unregisters a probe from the graph

Jump to

Keyboard shortcuts

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