config

package
v0.0.0-...-f8cf683 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasMqtt

func HasMqtt() (result bool)

func Load

func Load()

Types

type Config

type Config struct {
	Debug  bool
	Mqtt   MqttConfig
	Modbus ModbusConfig
}
var Conf Config

type ModbusConfig

type ModbusConfig struct {
	Serial ModbusSerialConfig
	Tcp    ModbusTcpConfig
}

type ModbusSerialConfig

type ModbusSerialConfig struct {
	Enabled bool
	Port    serial.Config
}

type ModbusTcpConfig

type ModbusTcpConfig struct {
	Host string
	Port int
}

type MqttConfig

type MqttConfig struct {
	Enabled  bool
	Url      string
	Topic    string
	Qos      byte
	Insecure bool
}

Jump to

Keyboard shortcuts

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