flightengine

package
v0.0.0-...-4d6f4e0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2013 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MomUrl      = "http://www.momondo.com/Momondo.asmx"
	MomAvgPrice = "WhereToGoGetUpdated"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AvgPriceResponse

type AvgPriceResponse struct {
	OrigCode   string  `xml:"OrigCode"`
	DestCode   string  `xml:"DestCode"`
	Month      int     `xml:"Month"`
	Year       int     `xml:"Year"`
	PriceEUR   float64 `xml:"PriceEUR"`
	SupplierId string  `xml:"SupplierId"`
}

type Momondo

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

implements the SearchEngine interface

func (*Momondo) AvgPrice

func (a *Momondo) AvgPrice(orig string, dest string, month int, year int) (float64, error)

type SearchEngine

type SearchEngine interface {
	/* get the average price per month */
	AvgPrice(orig string, dest string, month int, year int) float64
}

Jump to

Keyboard shortcuts

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