airtrack

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: GPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractOpenAipFile

func ExtractOpenAipFile(nearestAirports *geo.NearestAirportGeocoder, d []byte) (int, error)

ExtractOpenAipFile takes an .aip files data and registers the airports

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

Loader takes care of initializing dependencies for airtrack and processing the configuration. It is not intended to be reused for multiple runs.

func (*Loader) Load

func (l *Loader) Load(c *TrackCmd) error

Load loads and processes the configuration sets everything up

func (*Loader) Start

func (l *Loader) Start() error

Start launches all the configured services

func (*Loader) Stop

func (l *Loader) Stop() error

Stop ends aircraft tracking and brings down running services

type MigrateDownCmd

type MigrateDownCmd struct {
	Config string `help:"Configuration file path"`
	Force  bool   `help:"Proceed with task without user confirmation'"`
}

MigrateDownCmd - executes migrate down

func (*MigrateDownCmd) Run

func (c *MigrateDownCmd) Run() error

Run - triggers down migrations

type MigrateStepsCmd

type MigrateStepsCmd struct {
	Config string `help:"Configuration file path"`
	Force  bool   `help:"Proceed with task without user confirmation'"`
	N      int    `help:"how many migrations up (if positive), or down (if negative)"`
}

MigrateStepsCmd - executes n migration steps

func (*MigrateStepsCmd) Run

func (c *MigrateStepsCmd) Run() error

Run - triggers migration n steps

type MigrateUpCmd

type MigrateUpCmd struct {
	Config string `help:"Configuration file path"`
	Force  bool   `help:"Proceed with task without user confirmation'"`
}

MigrateUpCmd - executes migrate up

func (*MigrateUpCmd) Run

func (c *MigrateUpCmd) Run() error

Run - triggers up migrations

type TrackCmd

type TrackCmd struct {
	// Config - aircraft configuration file path
	Config string `help:"Configuration file path"`
	// Projects - List of project configuration files
	Projects []string `help:"Projects configuration file (may be repeated, and in addition to main configuration file)"`
	// Verbosity - log level to use
	Verbosity string `help:"Log level panic, fatal, error, warn, info, debug, trace)" default:"warn"`
	// CPUProfile - will start CPU profile and write result to this file path
	CPUProfile string `help:"Write CPU profile to file"`
	// HeapProfile - will run heap profiler every 10 seconds and write results to
	// files with this prefix suffixed by a counter.
	HeapProfile string `help:"Write heap profile to file"`
}

TrackCmd - aircraft tracking task

func (*TrackCmd) Run

func (c *TrackCmd) Run() error

Run - the command line entry point for TrackCmd

type VersionCmd

type VersionCmd struct{}

VersionCmd - prints version & build info

func (*VersionCmd) Run

func (c *VersionCmd) Run() error

Run - prints version & build info

Jump to

Keyboard shortcuts

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