config

package
v0.0.0-...-93f8c6f Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

config package to read configuration files

Index

Constants

View Source
const DefaultConfigFileContent = `` /* 322-byte string literal not displayed */
View Source
const DefaultConfigFilePath = ".config/bdsicego/config.yml"

Variables

This section is empty.

Functions

func GetDefaultConfigFilePath

func GetDefaultConfigFilePath() (string, error)

returns a hard-coded and architecture-dependant path to the config file.

Types

type BDSICEConfig

type BDSICEConfig struct {
	DataLocalPath     string `yaml:"path"`
	DatabaseLocalPath string `yaml:"dblocalpath"`
	UpdateLocalPath   string `yaml:"updatelocalpath"`
	UpdateURL         string `yaml:"updateurl"`
	BulletinURL       string `yaml:"bulletinurl"`
	DownloadURL       string `yaml:"downloadurl"`
	UserAgent         string `yaml:"useragent"`
	Debug             bool   `yaml:"debug"`
	PlotViewer        string `yaml:"plotviewer"`
}

func GetConfig

func GetConfig() (*BDSICEConfig, error)

func GetConfig(filePath string) *BDSICEConfig {

Jump to

Keyboard shortcuts

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