models

package
v0.0.0-...-2b9725c Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Airline

type Airline struct {

	// active
	Active string `json:"Active,omitempty"`

	// airline ID
	AirlineID int64 `json:"AirlineID,omitempty"`

	// alias
	Alias string `json:"Alias,omitempty"`

	// callsign
	Callsign string `json:"Callsign,omitempty"`

	// country
	Country string `json:"Country,omitempty"`

	// i a t a
	IATA string `json:"IATA,omitempty"`

	// i c a o
	ICAO string `json:"ICAO,omitempty"`

	// name
	Name string `json:"Name,omitempty"`
}

Airline airline swagger:model airline

func (*Airline) MarshalBinary

func (m *Airline) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Airline) UnmarshalBinary

func (m *Airline) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Airline) Validate

func (m *Airline) Validate(formats strfmt.Registry) error

Validate validates this airline

type Airport

type Airport struct {

	// airport ID
	AirportID int32 `json:"AirportID,omitempty"`

	// altitude
	Altitude float64 `json:"Altitude,omitempty"`

	// city
	City string `json:"City,omitempty"`

	// country
	Country string `json:"Country,omitempty"`

	// d s t
	DST string `json:"DST,omitempty"`

	// i a t a
	IATA string `json:"IATA,omitempty"`

	// i c a o
	ICAO string `json:"ICAO,omitempty"`

	// latitude
	Latitude float64 `json:"Latitude,omitempty"`

	// longitude
	Longitude float64 `json:"Longitude,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// t z
	TZ string `json:"TZ,omitempty"`

	// timezone
	Timezone int64 `json:"timezone,omitempty"`
}

Airport airport swagger:model airport

func (*Airport) MarshalBinary

func (m *Airport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Airport) UnmarshalBinary

func (m *Airport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Airport) Validate

func (m *Airport) Validate(formats strfmt.Registry) error

Validate validates this airport

type Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error swagger:model error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Schedule

type Schedule struct {

	// days operated
	// Required: true
	DaysOperated *string `json:"DaysOperated"`

	// departure time
	// Required: true
	DepartureTime *string `json:"DepartureTime"`

	// destination
	// Required: true
	Destination *int32 `json:"Destination"`

	// duration
	Duration string `json:"Duration,omitempty"`

	// flight number
	// Required: true
	FlightNumber *string `json:"FlightNumber"`

	// operating carrier
	// Required: true
	OperatingCarrier *string `json:"OperatingCarrier"`

	// origin
	// Required: true
	Origin *int32 `json:"Origin"`

	// schedule ID
	// Required: true
	ScheduleID *int64 `json:"ScheduleID"`
}

Schedule schedule swagger:model schedule

func (*Schedule) MarshalBinary

func (m *Schedule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Schedule) UnmarshalBinary

func (m *Schedule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Schedule) Validate

func (m *Schedule) Validate(formats strfmt.Registry) error

Validate validates this schedule

type Version

type Version struct {

	// version
	Version string `json:"Version,omitempty"`
}

Version version swagger:model version

func (*Version) MarshalBinary

func (m *Version) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Version) UnmarshalBinary

func (m *Version) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Version) Validate

func (m *Version) Validate(formats strfmt.Registry) error

Validate validates this version

Jump to

Keyboard shortcuts

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