config

package
v0.2024.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Name string `json:"name"`
	Id   string `json:"id, omitempty"`
}

type MQTTBroker

type MQTTBroker struct {
	Host     string `json:"host,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Topic    string `json:"topic,omitempty"`
}

func (MQTTBroker) ClientOptions

func (b MQTTBroker) ClientOptions() (*mqtt.ClientOptions, error)

type Root

type Root struct {
	driver.BaseConfig

	Broker  MQTTBroker `json:"broker,omitempty"`
	Devices []Device   `json:"devices,omitempty"`
}

Jump to

Keyboard shortcuts

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