probe

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 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 Bundle added in v0.21.0

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

Bundle describes a bundle of probes (topology of flow)

func NewBundle added in v0.21.0

func NewBundle(p map[string]Probe) *Bundle

NewBundle creates a new probe bundle

func (*Bundle) ActiveProbes added in v0.21.0

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

ActiveProbes returns all active probes name

func (*Bundle) AddProbe added in v0.21.0

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

AddProbe adds a probe to the bundle

func (*Bundle) GetProbe added in v0.21.0

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

GetProbe retrieve a specific probe name

func (*Bundle) Start added in v0.21.0

func (p *Bundle) Start()

Start a bundle of probes

func (*Bundle) Stop added in v0.21.0

func (p *Bundle) Stop()

Stop a bundle of probes

type Probe

type Probe interface {
	Start()
	Stop()
}

Probe describes a Probe (topology or flow) mechanism API

Jump to

Keyboard shortcuts

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