mqtt

package
v0.0.0-...-1f1d11f Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CLIENT_ID = "status2Go"

Variables

This section is empty.

Functions

func GenerateRandomBytes

func GenerateRandomBytes(n int) []byte

GenerateRandomBytes returns securely generated random bytes. It will fail with a fatal log if the system's secure random number generator fails to function correctly

func GenerateRandomString

func GenerateRandomString(s int) string

GenerateRandomString returns a URL-safe, base64 encoded securely generated random string. It will fail with a fatal log if the system's secure random number generator fails to function correctly

Types

type MqttManager

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

func NewMqttManager

func NewMqttManager(conf conf.MqttConf, events events.EventManager, appState *state.State) *MqttManager

func (*MqttManager) SendNewSpaceStatus

func (h *MqttManager) SendNewSpaceStatus(status state.OpenValue)

Jump to

Keyboard shortcuts

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