flightstats

package
v0.0.0-...-b2d281f Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {
	Departure string
	Arrival   string
}

type FlightStats

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

func New

func New() FlightStats

func (*FlightStats) GetAirportsForFlight

func (f *FlightStats) GetAirportsForFlight(flightNumber string, date time.Time) (Details, error)

type Response

type Response struct {
	Appendix struct {
		Airports []struct {
			ICAO string `json:"icao"`
		}
	}
	Error struct {
		HTTPStatusCode int
		ErrorMessage   string
	}
}

Jump to

Keyboard shortcuts

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