Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Airport ¶
Airport includes details of each airport.
func AirportMapFilter ¶
AirportMapFilter filters a map of airports, returning an array of values that pass the filter function.
func AirportMapValues ¶
AirportMapValues returns all values of a map of airports.
type Arguments ¶
type Arguments struct { Origin string // IATA airport code Destination string // IATA airport code Adults int // adults are over 16 Children int // children are 1-16 Infants int // infants are 0-12 months OutboundDate string // must be YYYY-MM-DD HolidayDuration int // in nights APIHost string // from your rapidapi account APIKey string // from your rapidapi account }
Arguments encapsulates all quote criteria and supporting info needed.
type Flight ¶
type Flight struct { ID string FlightNumber *FlightNumber StartAirport *Airport StartTime time.Time DestinationAirport *Airport DestinationTime time.Time Duration time.Duration }
Flight details a single leg within a journey.
type FlightNumber ¶
FlightNumber details the carrier number for a flight (can be several).
type Itinerary ¶
type Itinerary struct { SupplierName string SupplierType string Amount int // monetary type?? OutboundJourney *Journey InboundJourney *Journey }
Itinerary details a holiday travel quote for outbound and inbound journeys.
type Journey ¶
type Journey struct { ID string Direction Direction Flights []*Flight Duration time.Duration StartTime time.Time EndTime time.Time }
Journey details an outbound or inbound set of flights within an Itinery.
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) }
Logger handles writing to a log.
Click to show internal directories.
Click to hide internal directories.