plugin

package
v0.0.0-...-54e2124 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMQTTInstance

NewMQTTDatasource creates a new datasource instance.

Types

type MQTTDatasource

type MQTTDatasource struct {
	Client mqtt.Client
	// contains filtered or unexported fields
}

func NewMQTTDatasource

func NewMQTTDatasource(client mqtt.Client, uid string) *MQTTDatasource

NewMQTTDatasource creates a new datasource instance.

func (*MQTTDatasource) CheckHealth

func (*MQTTDatasource) Dispose

func (ds *MQTTDatasource) 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 NewMQTTDatasource factory function.

func (*MQTTDatasource) PublishStream

func (*MQTTDatasource) QueryData

func (*MQTTDatasource) RunStream

func (ds *MQTTDatasource) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error

func (*MQTTDatasource) SubscribeStream

Jump to

Keyboard shortcuts

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