config

package
v0.0.0-...-151bbc5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuratie

type Configuratie struct {

	// Main Applicatie configuratie, waarop communiceert de applicatie en waar zijn de testservers.
	BindAddress      string  `yaml:"bind.address"`      // BindAddress is voor de keuze van de interface van de applicatie
	Port             string  `yaml:"listen.port"`       // Poort waarop de applicatie luistert
	ServerLatitude   float64 `yaml:"server.latitude"`   // Latitude GPS Locatie van de testserver (Om afstand te bepalen)
	ServerLongtitude float64 `yaml:"server.longtitude"` // Longtitude GPS Locatie van de testserver (Om afstand te bepalen)
	IPInfoAPIKey     string  `yaml:"ipinfo.apikey"`     // API Key om gebruik te maken van https://ipinfo.io
	//Website gerelateerde dingen
	AssetsPath string `yaml:"assets.path"` // Locatie waar de HTML bestanden staan van de website

	EnableHTTP2 bool   `yaml:"http2"`
	EnableTLS   bool   `yaml:"tls"`
	TLSCertFile string `yaml:"tls_cert_file"`
	TLSKeyFile  string `yaml:"tls_key_file"`
}

func Load

func Load(configPath string) Configuratie

func LoadedConfig

func LoadedConfig() *Configuratie

Jump to

Keyboard shortcuts

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