config

package
v0.0.0-...-ad5a82a Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultIdentityURL     = "http://localhost:8030/"
	DefaultCredentialsPath = ".secret"
)

Default parameters

Variables

This section is empty.

Functions

func GetPath

func GetPath(filename string) string

GetPath returns the full path to the data file

func StoreParameters

func StoreParameters(c Settings) error

StoreParameters stores the configuration parameters on the filesystem

Types

type Settings

type Settings struct {
	IdentityURL     string `json:"url"`
	CredentialsPath string `json:"path"`
}

Settings defines the application configuration

var Config Settings

Config holds the config parameters for the application

func ReadParameters

func ReadParameters() *Settings

ReadParameters fetches the store config parameters

Jump to

Keyboard shortcuts

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