config

package
v0.0.0-...-684ac28 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG      = "debug"
	METRICS    = "metrics"
	BEAST_HOST = "adsbHost"
	BEAST_PORT = "adsbPort"
	MLAT_HOST  = "mlatHost"
	MLAT_PORT  = "mlatPort"
	BASELAT    = "lat"
	BASELON    = "lon"
	CONFIGFILE = "config"
	OUTPUT     = "out"
)

Variables

View Source
var (
	ConfigFile string
)

Functions

func LoadConfig

func LoadConfig()

Types

type BeastInfo

type BeastInfo struct {
	Sources   []Source
	Homepos   *geo.Point
	Latitude  float64  `yaml:"baseLat"`
	Longitude float64  `yaml:"baseLon"`
	Debug     bool     `yaml:"debug"`
	Metrics   bool     `yaml:"metrics"`
	Outputs   []string `yaml:"output"`
	RtlInput  bool     `yaml:"rtl"`
}

type Source

type Source struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}

Jump to

Keyboard shortcuts

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