settings

package
v0.0.0-...-a354c5a Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSingleConfigValue

func GetSingleConfigValue(key string) string

GetSingle returns the config value at <key>

func PromptConfig

func PromptConfig()

func SaveConfigToFile

func SaveConfigToFile(options map[string]string)

Save the config

Types

type Configuration

type Configuration struct {
	Port             string
	Services         []string
	ScriptsPath      string
	WebPath          string
	WebStaticPath    string
	WebTemplatesPath string
	IPLookupURL      string
	Username         string
	Password         string
	CryptoSecret     string
}

Configuration struct contains the json decoded options

func LoadConfig

func LoadConfig() Configuration

LoadConfig loads the Config struct via configPath

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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