Documentation ¶
Index ¶
- func NewBackendPlugin(pluginID, executablePath string) backendplugin.PluginFactoryFunc
- func NewRendererPlugin(pluginID, executablePath string, startFn StartRendererFunc) backendplugin.PluginFactoryFunc
- type ClientV2
- func (c *ClientV2) CallResource(ctx context.Context, req *backend.CallResourceRequest, ...) error
- func (c *ClientV2) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (c *ClientV2) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
- func (c *ClientV2) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
- func (c *ClientV2) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
- func (c *ClientV2) RunStream(ctx context.Context, req *backend.RunStreamRequest, ...) error
- func (c *ClientV2) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
- type PluginDescriptor
- type StartRendererFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBackendPlugin ¶
func NewBackendPlugin(pluginID, executablePath string) backendplugin.PluginFactoryFunc
NewBackendPlugin creates a new backend plugin factory used for registering a backend plugin.
func NewRendererPlugin ¶
func NewRendererPlugin(pluginID, executablePath string, startFn StartRendererFunc) backendplugin.PluginFactoryFunc
NewRendererPlugin creates a new renderer plugin factory used for registering a backend renderer plugin.
Types ¶
type ClientV2 ¶
type ClientV2 struct { grpcplugin.DiagnosticsClient grpcplugin.ResourceClient grpcplugin.DataClient grpcplugin.StreamClient pluginextensionv2.RendererPlugin }
func (*ClientV2) CallResource ¶
func (c *ClientV2) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error
func (*ClientV2) CheckHealth ¶
func (c *ClientV2) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*ClientV2) CollectMetrics ¶
func (c *ClientV2) CollectMetrics(ctx context.Context, req *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error)
func (*ClientV2) PublishStream ¶
func (c *ClientV2) PublishStream(ctx context.Context, req *backend.PublishStreamRequest) (*backend.PublishStreamResponse, error)
func (*ClientV2) QueryData ¶
func (c *ClientV2) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
func (*ClientV2) RunStream ¶
func (c *ClientV2) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error
func (*ClientV2) SubscribeStream ¶
func (c *ClientV2) SubscribeStream(ctx context.Context, req *backend.SubscribeStreamRequest) (*backend.SubscribeStreamResponse, error)
type PluginDescriptor ¶
type PluginDescriptor struct {
// contains filtered or unexported fields
}
PluginDescriptor is a descriptor used for registering backend plugins.
type StartRendererFunc ¶
type StartRendererFunc func(pluginID string, renderer pluginextensionv2.RendererPlugin, logger log.Logger) error
StartRendererFunc callback function called when a renderer plugin is started.
Click to show internal directories.
Click to hide internal directories.