Versions in this module Expand all Collapse all v1 v1.0.0 Apr 15, 2017 Changes in this version type AviasalesApi + func (a *AviasalesApi) SpecialOffers() (specialOffers []SpecialOffer, err error) + type SpecialOffer struct + Airline string + AirlineCode string + Conditions string + Description string + FlightDateBegin int + FlightDateEnd int + Href string + Id int + Link string + Routes []SpecialOfferRoute + SaleDateBegin int + SaleDateEnd int + Title string + type SpecialOfferRoute struct + Class string + FromIata string + FromName string + OnewayPrice string + RoundtripPrice string + ToIata string + ToName string + type XMLSpecialOffers struct + Offers []SpecialOffer + XMLName xml.Name v0 v0.2.0 May 25, 2016 v0.1.0 Apr 17, 2016 Changes in this version + type Airline struct + Alias string + Callsign string + Country string + Iata string + Icao string + IsActive bool + Name string + type Airport struct + CityCode string + Code string + Coordinates Coordinates + CountryCode string + Name string + NameTranslations map[string]string + TimeZone string + type Alliance struct + Airlines []string + Name string + type AviasalesApi struct + func NewAviasalesApi(token string) *AviasalesApi + func (a *AviasalesApi) AirlineDirections(airlineCode string, limit int) (airlineDirections DataAirlineDirections, err error) + func (a *AviasalesApi) CityDirections(origin string) (flights DataCityDirectionsFlight, err error) + func (a *AviasalesApi) DataAirlines() (airlines []Airline, err error) + func (a *AviasalesApi) DataAirlinesAlliances() (airlinesAlliances []Alliance, err error) + func (a *AviasalesApi) DataAirports() (airports []Airport, err error) + func (a *AviasalesApi) DataCities() (cities []City, err error) + func (a *AviasalesApi) DataCountries() (countries []Country, err error) + func (a *AviasalesApi) DataPlanes() (planes []Plane, err error) + func (a *AviasalesApi) DataRoutes() (routes []Route, err error) + func (a *AviasalesApi) PricesCalendar(input InputPricesCalendar) (flights DataFlightCalendar, err error) + func (a *AviasalesApi) PricesCheap(input InputPricesCheap) (flights DataFlight, err error) + func (a *AviasalesApi) PricesDirect(input InputPricesCheap) (flights DataFlight, err error) + func (a *AviasalesApi) PricesLatest(input InputPricesLatest) (prices DataPrice, err error) + func (a *AviasalesApi) PricesMonthMatrix(input InputPricesMonthMatrix) (prices DataPrice, err error) + func (a *AviasalesApi) PricesNearestPlacesMatrix(input InputPricesNearestPlacesMatrix) (prices DataPriceNearest, err error) + func (a *AviasalesApi) PricesWeekMatrix(input InputPricesWeekMatrix) (prices DataPrice, err error) + func (a *AviasalesApi) SetLogger(logger LoggerInterface) + type City struct + Code string + Coordinates Coordinates + CountryCode string + Name string + NameTranslations map[string]string + TimeZone string + type Coordinates struct + Lan float64 + Lon float64 + type Country struct + Code string + Currency string + Name string + NameTranslations map[string]string + type DataAirlineDirections struct + Currency string + Data map[string]int + Error string + Success bool + type DataCityDirectionsFlight struct + Data map[string]Flight + Success bool + type DataFlight struct + Data map[string]map[string]Flight + Success bool + type DataFlightCalendar struct + Data map[string]FlightCalendar + Success bool + type DataPrice struct + Data []Price + Success bool + type DataPriceNearest struct + Data []PriceNearest + Success bool + type Flight struct + Airline string + DepartureAt string + ExpiresAt string + FlightNumber int + Price int + ReturnAt string + type FlightCalendar struct + Airline string + DepartureAt string + Destination string + ExpiresAt string + FlightNumber int + Origin string + Price int + ReturnAt string + Transfers int + type InputPricesCalendar struct + CalendarType string + Currency string + DepartDate string + Destination string + Origin string + ReturnDate string + TripDuration int + type InputPricesCheap struct + Currency string + DepartDate string + Destination string + Origin string + ReturnDate string + type InputPricesLatest struct + BeginningOfPeriod string + Currency string + Destination string + Limit int + OneWay bool + Origin string + Page int + PeriodType string + ShowToAffiliates bool + Sorting string + TripClass int + TripDuration string + type InputPricesMonthMatrix struct + Currency string + Destination string + Month string + Origin string + ShowToAffiliates bool + type InputPricesNearestPlacesMatrix struct + Currency string + DepartDate string + Destination string + Origin string + ReturnDate string + ShowToAffiliates bool + type InputPricesWeekMatrix struct + Currency string + DepartDate string + Destination string + Origin string + ReturnDate string + ShowToAffiliates bool + type LoggerInterface interface + Debug func(...interface{}) + type Plane struct + Code string + Name string + type Price struct + Actual bool + DepartDate string + Destination string + Distance int + FoundAt string + NumberOfChanges int + Origin string + ReturnDate string + ShowToAffiliates bool + TripClass int + Value int + type PriceNearest struct + Destinations []string + Origins []string + Prices []Price + type Route struct + AirlineIata string + AirlineIcao string + ArrivalAirportIata string + ArrivalAirportIcao string + Codeshare bool + DepartureAirportIata string + DepartureAirportIcao string + Planes []string + Transfers int