util

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: GPL-3.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostname added in v1.1.0

func GetHostname() string

func MqttSetup added in v1.1.0

func MqttSetup(hostname string, info MqttInfo) share.MqttConnection

Types

type Flag added in v1.1.0

type Flag struct {
	Device *string
	Key    *string
	Mqtt   MqttInfo
}

Struct holding startup flag values

func StartupFlagParsing

func StartupFlagParsing() (flags Flag)

type MqttInfo added in v1.1.0

type MqttInfo struct {
	Broker    *string
	TopicRoot *string
	Qos       *int
}

Struct holding startup mqtt values

Jump to

Keyboard shortcuts

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