model

package
v0.0.0-...-9524c35 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.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 Aircraft

type Aircraft struct {
	Hex               string   `json:"hex"`
	Squawk            *string  `json:"squawk,omitempty"`
	Lat               *float64 `json:"lat,omitempty"`
	Lon               *float64 `json:"lon,omitempty"`
	Flight            *string  `json:"flight,omitempty"`
	GroundSpeed       *float64 `json:"gs,omitempty"`
	Track             *float64 `json:"track,omitempty"`
	Emergency         *string  `json:"emergency,omitempty"`
	Category          *string  `json:"category,omitempty"`
	Rssi              *float32 `json:"rssi,omitempty"`
	GeometricAltitude *float64 `json:"alt_geom,omitempty"`

	// This field might be a number, a string (usually "ground"), or nil
	BarometerAltitude json.Token `json:"alt_baro,omitempty"`

	Details
}

type Details

type Details struct {
	Registration *string `json:"registration,omitempty"`
	TypeCode     *string `json:"type_code,omitempty"`
	Military     *bool   `json:"military,omitempty"`
	Interesting  *bool   `json:"interesting,omitempty"`
	PIA          *bool   `json:"pia,omitempty"`
	LADD         *bool   `json:"ladd,omitempty"`
	Description  *string `json:"description,omitempty"`
	Manufactured *string `json:"manufactured,omitempty"`
	Owner        *string `json:"owner,omitempty"`
}

type Report

type Report struct {
	Now      float64    `json:"now"`
	Messages uint64     `json:"messages"`
	Aircraft []Aircraft `json:"aircraft"`
}

Jump to

Keyboard shortcuts

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