probe

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 1 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

type Probe interface {
	Start()
	Stop()
}

Probe describes a Probe (topology or flow) mechanism API

type ProbeBundle

type ProbeBundle struct {
	common.RWMutex
	// contains filtered or unexported fields
}

ProbeBundle describes a bundle of probes (topology of flow)

func NewProbeBundle

func NewProbeBundle(p map[string]Probe) *ProbeBundle

NewProbeBundle creates a new probe bundle

func (*ProbeBundle) ActiveProbes added in v0.17.0

func (p *ProbeBundle) ActiveProbes() []string

ActiveProbes returns all active probes name

func (*ProbeBundle) AddProbe added in v0.16.0

func (p *ProbeBundle) AddProbe(name string, probe Probe)

AddProbe adds a probe to the bundle

func (*ProbeBundle) GetProbe

func (p *ProbeBundle) GetProbe(name string) Probe

GetProbe retrieve a specific probe name

func (*ProbeBundle) Start

func (p *ProbeBundle) Start()

Start a bundle of probes

func (*ProbeBundle) Stop

func (p *ProbeBundle) Stop()

Stop a bundle of probes

Jump to

Keyboard shortcuts

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