amadeus

package
v0.0.0-...-cfc4606 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.0.0"

Version contains a string with the amadeus sdk version

Variables

This section is empty.

Functions

This section is empty.

Types

type Amadeus

type Amadeus struct {

	// Shopping namespace
	Shopping *ShoppingStruct

	// Version of the SDK
	Version string
	// contains filtered or unexported fields
}

Amadeus client library for accessing the travel APIs

func Create

func Create(a ...string) *Amadeus

Create creates a new ClIent instance

type Direction

type Direction string

Direction types, to be used in the Flight Busiest Period API:

const (
	// Arriving type
	Arriving Direction = "ARRIVING"
	// Departing type
	Departing Direction = "DEPARTING"
)

type Location

type Location string

Location defines a handy list of location types, to be used in the locations API

const (
	// Airport type
	Airport Location = "AIRPORT"
	// City type
	City Location = "CITY"
	// Any location type
	Any Location = "AIRPORT,CITY"
)

type ShoppingStruct

type ShoppingStruct struct {
	Client            *client.Client
	FlightDestination *shopping.FlightDestination
	FlightOffers      *shopping.FlightOffers
}

ShoppingStruct represents shopping namespace

func NewShopping

func NewShopping(client *client.Client) *ShoppingStruct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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