mqtt

package
v0.0.0-...-30a366f Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TicketQos = byte(0)
	OrderQos  = byte(2)
)

Variables

View Source
var (
	Cli mqtt.Client
)

Functions

func InitMQTT

func InitMQTT(cfg Config)

Types

type Config

type Config struct {
	Host     string `json:"host"`
	Port     int64  `json:"port"`
	UserName string `json:"user_name"`
	Password string `json:"password"`
	LogLevel string `json:"log_level"` // "DEBUG","WARN","WARNING","ERROR","CRITICAL","debug","warn","warning","error","critical"
}

Jump to

Keyboard shortcuts

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