internal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TracksLayerCamera    = "camera"
	TracksLayerPath      = "path"
	TracksLayerPlacemark = "placemark"
	TracksLayerVector    = "vector"
)

Variables

Functions

func GetBuildVcsVersion added in v0.0.2

func GetBuildVcsVersion() string

func GetConfigFilename

func GetConfigFilename(verbose bool) string

Types

type Config

type Config struct {
	AeroApiUrl   string `env:"AEROAPI_API_URL,default=https://aeroapi.flightaware.com/aeroapi"`
	ArtifactsDir string `env:"ARTIFACTS_DIR,default=."`
	Verbose      bool   `env:"VERBOSE,default=false"`
	// "required" fields should come at the end; otherwise, the defaults (above) won't be applied when
	// the required values aren't found (that error isn't fatal so we want the defaults to be applied)
	AeroApiKey string `env:"AEROAPI_API_KEY,required" secret:"mask"`
}

type TracksCommandArgs

type TracksCommandArgs struct {
	Config           Config
	LaunchFirstKml   bool
	NoBanking        bool
	SaveResponses    bool
	VerboseOperation bool
	DebugOperation   bool
	FromArtifacts    string
	ArtifactsDir     string
	KmlLayers        string
	TailNumber       string
	FlightNumber     string
	FlightCount      int
	CutoffTime       time.Time
}

func (TracksCommandArgs) GenerateTracks

func (tca TracksCommandArgs) GenerateTracks() error

func (TracksCommandArgs) IsVerbose added in v0.0.2

func (tca TracksCommandArgs) IsVerbose() bool

Directories

Path Synopsis
kml

Jump to

Keyboard shortcuts

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