Versions in this module Expand all Collapse all v1 v1.3.10 Sep 19, 2026 Changes in this version + var ErrFlightsNotFound = errors.New("flights: no flights found") + func FetchFlightsHTML(q QueryOrString, proxy string, fetchIntegration FetchIntegration) (string, error) + func GetFlights(q QueryOrString, proxy string, integration Integration) (any, error) + func Int32P(v int32) *int32 + type Airline struct + Code string + Name string + type Airport struct + Code string + Name string + type Alliance struct + Code string + Name string + type CarbonEmission struct + Emission int + TypicalOnRoute int + type Currency = string + type DataSourceIntegration interface + Fetch func(q QueryOrString) (any, error) + type FetchIntegration interface + FetchHTML func(q QueryOrString) (string, error) + type FlightQuery struct + Airlines []string + ConnectingAirports []string + Date string + EarliestArrivalHour *int32 + EarliestDepartureHour *int32 + FromAirport string + LatestArrivalHour *int32 + LatestDepartureHour *int32 + LessEmissionsOnly bool + MaxDurationMinutes *int32 + MaxLayoverMinutes *int32 + MaxStops *int32 + MinLayoverMinutes *int32 + ToAirport string + func NewFlightQuery(date, from, to string) FlightQuery + func NewFlightQueryFromTime(date time.Time, from, to string) FlightQuery + func (q FlightQuery) WithMaxStops(m int32) FlightQuery + type Flights struct + Airlines []string + Carbon CarbonEmission + Flights []SingleFlight + Price *int + Type string + type Integration interface + type JsMetadata struct + Airlines []Airline + Alliances []Alliance + type Language = string + type Passengers struct + Adults int + Children int + InfantsInSeat int + InfantsOnLap int + func NewPassengers(adults, children, infantsInSeat, infantsOnLap int) (Passengers, error) + type Query struct + func CreateQuery(flights []FlightQuery, passengers Passengers, opts QueryOptions) (*Query, error) + func (q *Query) Currency() string + func (q *Query) FlightData() []*pb.FlightData + func (q *Query) Language() string + func (q *Query) Params() (map[string]string, error) + func (q *Query) Passengers() []pb.Passenger + func (q *Query) SeatType() (SeatType, error) + func (q *Query) ToBytes() ([]byte, error) + func (q *Query) ToStr() (string, error) + func (q *Query) TripType() (TripType, error) + func (q *Query) URL() (string, error) + type QueryOptions struct + CarryOnBags int + CheckedBags int + Currency Currency + ExcludeBasicEconomy bool + HideSeparateAndSelfTransfer bool + Language Language + MaxPrice *int32 + MaxStops *int32 + Seat SeatType + Trip TripType + type QueryOrString interface + type ResultList struct + Items []Flights + Metadata JsMetadata + func GetFlightsDirect(q QueryOrString, proxy string, fi FetchIntegration) (ResultList, error) + func Parse(htmlContent string) (ResultList, error) + func ParseJS(js string) (ResultList, error) + type SeatType string + const SeatBusiness + const SeatEconomy + const SeatFirst + const SeatPremiumEconomy + type SimpleDatetime struct + Date [3]int + Time [2]int + type SingleFlight struct + Arrival SimpleDatetime + Departure SimpleDatetime + Duration int + FromAirport Airport + PlaneType string + ToAirport Airport + type StringQuery string + type TripType string + const TripMultiCity + const TripOneWay + const TripRoundTrip