Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotCompiled = fmt.Errorf("probe not compiled")
ErrNotCompiled is thrown when a probe was not compiled within the binary
View Source
var ErrNotImplemented = errors.New("not implemented")
ErrNotImplemented unimplemented feature
View Source
var ErrNotRunning = errors.New("probe is not running")
ErrNotRunning is used when a probe is not running
View Source
var ErrNotStopped = errors.New("probe is not stopped")
ErrNotStopped is used when a not stopped probe is started
Functions ¶
This section is empty.
Types ¶
type Bundle ¶ added in v0.21.0
type Bundle struct { insanelock.RWMutex Handlers map[string]Handler }
Bundle describes a bundle of probes (topology of flow)
func NewBundle ¶ added in v0.21.0
func NewBundle() *Bundle
NewBundle creates a new probe handler bundle
func (*Bundle) AddHandler ¶ added in v0.25.0
AddHandler adds a probe to the bundle
func (*Bundle) EnabledProbes ¶ added in v0.25.0
EnabledProbes returns all enabled probes name
func (*Bundle) GetHandler ¶ added in v0.25.0
GetHandler retrieve a specific handler
type Handler ¶ added in v0.25.0
type Handler interface { Start() error Stop() }
Handler describes a probe
type ServiceStatus ¶ added in v0.25.0
ServiceStatus describes the status returned by GetStatus
Click to show internal directories.
Click to hide internal directories.