probes

package
v0.0.0-...-1d39891 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 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

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

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

Handler defines a topology probe handler

type ProbeWrapper

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

func NewProbeWrapper(handler handler) *ProbeWrapper

NewProbeWrapper returns a new probe wrapper

func NewProbeWrapperWithDuration

func NewProbeWrapperWithDuration(handler handler, interval time.Duration) *ProbeWrapper

NewProbeWrapperWithDuration returns a new probe wrapper from a given interval

func (*ProbeWrapper) GetStatus

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

GetStatus returns the status of the probe

func (*ProbeWrapper) Start

func (p *ProbeWrapper) Start()

Start the probe

func (*ProbeWrapper) Stop

func (p *ProbeWrapper) Stop()

Stop the probe

Directories

Path Synopsis
tungstenfabric
sfc

Jump to

Keyboard shortcuts

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