plugin

package
v0.0.0-...-d66e16b Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatasource

NewMQTTDatasource creates a new datasource instance.

Types

type Datasource

type Datasource struct {
	// contains filtered or unexported fields
}

func (*Datasource) CallResource

func (*Datasource) CheckHealth

func (*Datasource) Dispose

func (ds *Datasource) Dispose()

Dispose here tells plugin SDK that plugin wants to clean up resources when a new instance created. As soon as datasource settings change detected by SDK old datasource instance will be disposed and a new one will be created using NewSampleDatasource factory function.

func (*Datasource) ExecuteAction

func (*Datasource) PublishStream

func (*Datasource) QueryData

func (*Datasource) RunStream

func (*Datasource) SubscribeStream

type SignalStreamer

type SignalStreamer struct {
	// contains filtered or unexported fields
}

DatasourceHandler is the plugin entrypoint and implements all of the necessary handler functions for dataqueries, healthchecks, and resources.

func (*SignalStreamer) Frames

func (s *SignalStreamer) Frames() (data.Frames, error)

func (*SignalStreamer) UpdateValues

func (s *SignalStreamer) UpdateValues(props map[string]interface{}) error

Jump to

Keyboard shortcuts

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