emq

package
v0.0.0-...-765649b Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(cfg Config) (c mqtt.Client, err error)

Types

type Config

type Config struct {
	Broker   string `koanf:"broker"`
	Port     int    `koanf:"port"`
	ClientID string `koanf:"clientid"`
	Username string `koanf:"username"`
	Password string `koanf:"password"`
}

type Mqtt

type Mqtt struct {
	Client mqtt.Client
}

Jump to

Keyboard shortcuts

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