config

package
v0.0.0-...-6e89ea1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort       = "8030"
	DefaultDriver     = "memory"
	DefaultDataSource = ""
	DefaultMQTTURL    = "mqtt.example.com"
	DefaultMQTTPort   = "8883"
	DefaultConfigPath = "."

	DefaultCertsPath = "certs"
)

Default settings

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	Port         string
	Driver       string
	DataSource   string
	MQTTUrl      string
	MQTTPort     string
	KeySecret    string
	RootCertsDir string
}

Settings defines the application configuration

func ParseArgs

func ParseArgs() *Settings

ParseArgs checks the command line arguments

Jump to

Keyboard shortcuts

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