beater

package
v0.0.0-...-a2d8b45 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HEADERS = map[string]string{
	"Accept-Encoding": "gzip",
	"Accept-Language": "fr-FR,fr;q=0.6",
	"Cache-Control":   "max-age=0",
	"Origin":          "https://www.flightradar24.com",
	"Referer":         "https://www.flightradar24.com/",
	"Sec-Fetch-Dest":  "empty",
	"Sec-Fetch-Mode":  "cors",
	"Sec-Fetch-Site":  "same-site",
	"User-Agent":      "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
}

Functions

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New creates an instance of flightradarbeat.

Types

type Flight

type Flight struct {
	Id                     string
	Timestamp              int64
	ICAO                   string
	Latitude               float64
	Longitude              float64
	Heading                int64
	Altitude               int64
	GroundSpeed            int64
	Squawk                 string
	AircraftType           string
	AircraftCode           string
	Registration           string
	OriginAirportIATA      string
	DestinationAirportIATA string
	Number                 string
	AirlineIATA            string
	OnGround               bool
	VerticalSpeed          int64
	CallSign               string
	AirlineICAO            string
}

Jump to

Keyboard shortcuts

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