plugin

package
v0.0.0-...-d8207fe Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatasourceOpts

func GetDatasourceOpts() datasource.ServeOpts

func ToFrame

func ToFrame(messages []mqtt.Message) *data.Frame

Types

type Handler

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

func (*Handler) CheckHealth

func (*Handler) PublishStream

func (*Handler) QueryData

func (*Handler) RunStream

func (*Handler) SubscribeStream

type MQTTClient

type MQTTClient interface {
	Stream() *chan mqtt.StreamMessage
	IsConnected() bool
	IsSubscribed(topic string) bool
	Messages(topic string) ([]mqtt.Message, bool)
	Subscribe(topic string)
}

type MQTTDatasource

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

func (*MQTTDatasource) Dispose

func (m *MQTTDatasource) Dispose()

func (*MQTTDatasource) Query

func (*MQTTDatasource) SendMessage

Jump to

Keyboard shortcuts

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