Documentation ¶
Overview ¶
Package backendplugin contains backend plugin related logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPluginNotRegistered error returned when plugin is not registered. ErrPluginNotRegistered = errors.New("plugin not registered") // ErrHealthCheckFailed error returned when health check failed. ErrHealthCheckFailed = errors.New("health check failed") ErrPluginUnavailable = errors.New("plugin unavailable") // ErrMethodNotImplemented error returned when plugin method not implemented. ErrMethodNotImplemented = errors.New("method not implemented") )
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin interface { PluginID() string Logger() log.Logger Start(ctx context.Context) error Stop(ctx context.Context) error IsManaged() bool Exited() bool Decommission() error IsDecommissioned() bool Target() Target backend.CollectMetricsHandler backend.CheckHealthHandler backend.QueryDataHandler backend.CallResourceHandler backend.StreamHandler }
Plugin is the backend plugin interface.
type PluginFactoryFunc ¶
PluginFactoryFunc is a function type for creating a Plugin.
Directories ¶
Path | Synopsis |
---|---|
Package instrumentation contains backend plugin instrumentation logic.
|
Package instrumentation contains backend plugin instrumentation logic. |
Click to show internal directories.
Click to hide internal directories.