models

package
v0.0.0-...-6417433 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int32

Direction enum

const (
	UNKNOWN Direction = iota // Default direction
	WEST
	EAST
)

type Fix

type Fix struct {
	Name      string  `json:"Name"`
	Latitude  float64 `json:"Latitude"`
	Longitude float64 `json:"Longitude"`
	IsValid   bool    `json:"IsValid"`
}

Fix model

func CreateInvalidFix

func CreateInvalidFix() Fix

func CreateValidFix

func CreateValidFix(name string, lat float64, lon float64) Fix

type Track

type Track struct {
	ID           string    `json:"ID"`
	TMI          string    `json:"TMI"`
	Route        []Fix     `json:"Route"`
	FlightLevels []int     `json:"FlightLevels"`
	Direction    Direction `json:"Direction"`
	ValidFrom    int64     `json:"ValidFrom"`
	ValidTo      int64     `json:"ValidTo"`
	Type         TrackType `json:"Type"`
}

Track model

type TrackType

type TrackType int32

Track type enum

const (
	REGULAR TrackType = iota
	CONCORDE
	EVENT
)

type Validity

type Validity int32

Currency enum

const (
	NA Validity = iota // Default direction
	NOW
	EARLIER
	LATER
)

Jump to

Keyboard shortcuts

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