mqttcm

package
v0.0.0-...-29c3169 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(ctx context.Context, name, statusChannel string, subscribe []string, router paho.Router, conf config.MQConfigger, cp apitls.CertificateProvider) (*autopaho.ConnectionManager, error)

func StatusMessageJSON

func StatusMessageJSON(online bool) ([]byte, error)

Types

type MQTTTopics

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

func NewTopics

func NewTopics(depEnv api.DeploymentEnvironment) *MQTTTopics

func (*MQTTTopics) DataResponse

func (t *MQTTTopics) DataResponse(name, id string) string

func (*MQTTTopics) DataResponseSubscription

func (t *MQTTTopics) DataResponseSubscription() string

func (*MQTTTopics) ParseRequestTopic

func (t *MQTTTopics) ParseRequestTopic(topic string) (string, string, error)

func (*MQTTTopics) Request

func (t *MQTTTopics) Request(name, check string) string

func (*MQTTTopics) RequestSubscription

func (t *MQTTTopics) RequestSubscription(name string) string

func (*MQTTTopics) Status

func (t *MQTTTopics) Status(name string) string

func (*MQTTTopics) StatusAPITest

func (t *MQTTTopics) StatusAPITest(name string) string

func (*MQTTTopics) StatusSubscription

func (t *MQTTTopics) StatusSubscription() string

type StatusMessage

type StatusMessage struct {
	Online    bool
	Version   version.Info
	UpdatedMQ time.Time
}

Jump to

Keyboard shortcuts

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