probes

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotStopped is used when a not stopped probe is started
	ErrNotStopped = errors.New("service is not stopped")
)

Functions

This section is empty.

Types

type Context added in v0.25.0

type Context struct {
	Logger   logging.Logger
	Config   config.Config
	Graph    *graph.Graph
	RootNode *graph.Node
}

Context defines a context to be used by constructor of probes

type Handler added in v0.25.0

type Handler interface {
	probe.Handler
	Init(ctx Context, bundle *probe.Bundle) (Handler, error)
}

Handler defines a topology probe handler

type ProbeWrapper added in v0.25.0

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

ProbeWrapper wraps a probe so that it tries to reconnect if the connection to the daemon is lost

func NewProbeWrapper added in v0.25.0

func NewProbeWrapper(handler handler) *ProbeWrapper

NewProbeWrapper returns a new probe wrapper

func (*ProbeWrapper) GetStatus added in v0.25.0

func (p *ProbeWrapper) GetStatus() interface{}

GetStatus returns the status of the probe

func (*ProbeWrapper) Start added in v0.25.0

func (p *ProbeWrapper) Start()

Start the probe

func (*ProbeWrapper) Stop added in v0.25.0

func (p *ProbeWrapper) Stop()

Stop the probe

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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