config

package
v0.0.0-...-88bcfc7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Version = "0.1"
)

Version is the application version

Variables

This section is empty.

Functions

func GetPath

func GetPath() string

GetPath returns the path to the settings file

func Store

func Store(c *Settings, p string) error

Store stores the configuration parameters on the filesystem

Types

type Settings

type Settings struct {
	Driver           string `yaml:"driver"`
	DataSource       string `yaml:"datasource"`
	JwtSecret        string `yaml:"jwtSecret"`
	LocalPort        string `yaml:"localport"`
	DeviceTwinAPIUrl string `yaml:"deviceTwinAPIServiceUrl"`
	IdentityAPIUrl   string `yaml:"defaultIdentityAPIUrl"`
	URLHost          string `yaml:"urlHost"`
	URLScheme        string `yaml:"urlScheme"`
	StoreURL         string `yaml:"storeURL"`
	Version          string
}

Settings defines the parsed config file settings.

func Config

func Config(filePath string) (*Settings, error)

Config parses the config file

Jump to

Keyboard shortcuts

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