appconfig

package
v0.0.0-...-e8aaa87 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig() (configjson string, err error)

ReadConfig

func SaveConfig

func SaveConfig(newJSON string) (configjson string, err error)

SaveConfig

Types

type AppConfig

type AppConfig struct {
	Debug                bool   `json:"DEBUG"`
	LogFile              string `json:"LOGFILE"`
	PIDFile              string `json:"PIDFILE"`
	ServicePort          string `json:"SERVICEPORT"`
	ProxyURL             string `json:"PROXYURL"`
	Button1GPIOPin       string `json:"BUTTON1GPIOPIN"`
	Button2GPIOPin       string `json:"BUTTON2GPIOPIN"`
	Button1PressDuration string `json:"BUTTON1PRESSDURATION"`
	Button2PressDuration string `json:"BUTTON2PRESSDURATION"`
}

AppConfig contains config settings

var ConfigData AppConfig

ConfigData contains application configuration settings read from a JSON formatted file.

Jump to

Keyboard shortcuts

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