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 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
Click to show internal directories.
Click to hide internal directories.