mqtt

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMQTT

func NewMQTT(logger logger.Logger) bindings.InputOutputBinding

NewMQTT returns a new MQTT instance.

Types

type MQTT

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

MQTT allows sending and receiving data to/from an MQTT broker.

func (*MQTT) Close

func (m *MQTT) Close() error

func (*MQTT) Init

func (m *MQTT) Init(metadata bindings.Metadata) (err error)

Init does MQTT connection parsing.

func (*MQTT) Invoke

func (m *MQTT) Invoke(parentCtx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)

func (*MQTT) Operations

func (m *MQTT) Operations() []bindings.OperationKind

func (*MQTT) Read

func (m *MQTT) Read(ctx context.Context, handler bindings.Handler) error

Jump to

Keyboard shortcuts

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