config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugMode   = RunMode("debug")
	ReleaseMode = RunMode("release")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Name                 string   `json:"name"`
	MqttClientId         string   `json:"mqtt_client_id"`
	MqttKeepAlive        int      `json:"mqtt_keep_alive"`
	MqttConnectTimeout   int      `json:"mqtt_connect_timeout"`
	MqttSessionsProvider string   `json:"mqtt_sessions_provider"`
	MqttUsername         string   `json:"mqtt_username"`
	MqttPassword         string   `json:"mqtt_password"`
	MqttTopicsProvider   string   `json:"mqtt_topics_provider"`
	MqttIp               string   `json:"mqtt_ip"`
	MqttPort             int      `json:"mqtt_port"`
	ProxyPort            int      `json:"proxy_port"`
	Serial               []string `json:"serial"`
}

func ReadConfig

func ReadConfig() (conf *AppConfig, err error)

type RunMode

type RunMode string

Jump to

Keyboard shortcuts

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