connect

package
v0.0.0-...-0fa7426 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	// Connect to MQTT server
	Connect() error
	// Disconnect from MQTT Server
	Disconnect(timeout uint)

	Publish(topic string, payload interface{}) mqtt.Token

	Subscribe(topic string, handler mqtt.MessageHandler) error
}

func New

type ConnectionConfiguration

type ConnectionConfiguration struct {
	KeyPair  KeyPair
	Endpoint string
	Port     int
	ClientId string
}

type KeyPair

type KeyPair struct {
	PrivateKeyPath    string
	CertificatePath   string
	CACertificatePath string
}

Jump to

Keyboard shortcuts

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