airports

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAirportCreated

type AddAirportCreated struct {
	Payload *models.Airport
}

AddAirportCreated handles this case with default header values.

Created

func NewAddAirportCreated

func NewAddAirportCreated() *AddAirportCreated

NewAddAirportCreated creates a AddAirportCreated with default headers values

func (*AddAirportCreated) Error

func (o *AddAirportCreated) Error() string

type AddAirportDefault

type AddAirportDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

AddAirportDefault handles this case with default header values.

unexpected error

func NewAddAirportDefault

func NewAddAirportDefault(code int) *AddAirportDefault

NewAddAirportDefault creates a AddAirportDefault with default headers values

func (*AddAirportDefault) Code

func (o *AddAirportDefault) Code() int

Code gets the status code for the add airport default response

func (*AddAirportDefault) Error

func (o *AddAirportDefault) Error() string

type AddAirportParams

type AddAirportParams struct {

	/*Airport
	  Airport

	*/
	Airport *models.Airport

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AddAirportParams contains all the parameters to send to the API endpoint for the add airport operation typically these are written to a http.Request

func NewAddAirportParams

func NewAddAirportParams() *AddAirportParams

NewAddAirportParams creates a new AddAirportParams object with the default values initialized.

func NewAddAirportParamsWithContext

func NewAddAirportParamsWithContext(ctx context.Context) *AddAirportParams

NewAddAirportParamsWithContext creates a new AddAirportParams object with the default values initialized, and the ability to set a context for a request

func NewAddAirportParamsWithHTTPClient

func NewAddAirportParamsWithHTTPClient(client *http.Client) *AddAirportParams

NewAddAirportParamsWithHTTPClient creates a new AddAirportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAddAirportParamsWithTimeout

func NewAddAirportParamsWithTimeout(timeout time.Duration) *AddAirportParams

NewAddAirportParamsWithTimeout creates a new AddAirportParams object with the default values initialized, and the ability to set a timeout on a request

func (*AddAirportParams) SetAirport

func (o *AddAirportParams) SetAirport(airport *models.Airport)

SetAirport adds the airport to the add airport params

func (*AddAirportParams) SetContext

func (o *AddAirportParams) SetContext(ctx context.Context)

SetContext adds the context to the add airport params

func (*AddAirportParams) SetHTTPClient

func (o *AddAirportParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the add airport params

func (*AddAirportParams) SetTimeout

func (o *AddAirportParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the add airport params

func (*AddAirportParams) WithAirport

func (o *AddAirportParams) WithAirport(airport *models.Airport) *AddAirportParams

WithAirport adds the airport to the add airport params

func (*AddAirportParams) WithContext

func (o *AddAirportParams) WithContext(ctx context.Context) *AddAirportParams

WithContext adds the context to the add airport params

func (*AddAirportParams) WithHTTPClient

func (o *AddAirportParams) WithHTTPClient(client *http.Client) *AddAirportParams

WithHTTPClient adds the HTTPClient to the add airport params

func (*AddAirportParams) WithTimeout

func (o *AddAirportParams) WithTimeout(timeout time.Duration) *AddAirportParams

WithTimeout adds the timeout to the add airport params

func (*AddAirportParams) WriteToRequest

func (o *AddAirportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddAirportReader

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

AddAirportReader is a Reader for the AddAirport structure.

func (*AddAirportReader) ReadResponse

func (o *AddAirportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

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

Client for airports API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new airports API client.

func (*Client) AddAirport

func (a *Client) AddAirport(params *AddAirportParams) (*AddAirportCreated, error)

AddAirport Creates an Airport entry. Duplicates are not allowed

func (*Client) GetAirports

func (a *Client) GetAirports(params *GetAirportsParams) (*GetAirportsOK, error)

GetAirports get airports API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type GetAirportsBadRequest

type GetAirportsBadRequest struct {
	Payload *models.Error
}

GetAirportsBadRequest handles this case with default header values.

generic error response

func NewGetAirportsBadRequest

func NewGetAirportsBadRequest() *GetAirportsBadRequest

NewGetAirportsBadRequest creates a GetAirportsBadRequest with default headers values

func (*GetAirportsBadRequest) Error

func (o *GetAirportsBadRequest) Error() string

type GetAirportsDefault

type GetAirportsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetAirportsDefault handles this case with default header values.

generic error response

func NewGetAirportsDefault

func NewGetAirportsDefault(code int) *GetAirportsDefault

NewGetAirportsDefault creates a GetAirportsDefault with default headers values

func (*GetAirportsDefault) Code

func (o *GetAirportsDefault) Code() int

Code gets the status code for the get airports default response

func (*GetAirportsDefault) Error

func (o *GetAirportsDefault) Error() string

type GetAirportsOK

type GetAirportsOK struct {
	Payload []*models.Airport
}

GetAirportsOK handles this case with default header values.

list of airports

func NewGetAirportsOK

func NewGetAirportsOK() *GetAirportsOK

NewGetAirportsOK creates a GetAirportsOK with default headers values

func (*GetAirportsOK) Error

func (o *GetAirportsOK) Error() string

type GetAirportsParams

type GetAirportsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAirportsParams contains all the parameters to send to the API endpoint for the get airports operation typically these are written to a http.Request

func NewGetAirportsParams

func NewGetAirportsParams() *GetAirportsParams

NewGetAirportsParams creates a new GetAirportsParams object with the default values initialized.

func NewGetAirportsParamsWithContext

func NewGetAirportsParamsWithContext(ctx context.Context) *GetAirportsParams

NewGetAirportsParamsWithContext creates a new GetAirportsParams object with the default values initialized, and the ability to set a context for a request

func NewGetAirportsParamsWithHTTPClient

func NewGetAirportsParamsWithHTTPClient(client *http.Client) *GetAirportsParams

NewGetAirportsParamsWithHTTPClient creates a new GetAirportsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAirportsParamsWithTimeout

func NewGetAirportsParamsWithTimeout(timeout time.Duration) *GetAirportsParams

NewGetAirportsParamsWithTimeout creates a new GetAirportsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAirportsParams) SetContext

func (o *GetAirportsParams) SetContext(ctx context.Context)

SetContext adds the context to the get airports params

func (*GetAirportsParams) SetHTTPClient

func (o *GetAirportsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get airports params

func (*GetAirportsParams) SetTimeout

func (o *GetAirportsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get airports params

func (*GetAirportsParams) WithContext

func (o *GetAirportsParams) WithContext(ctx context.Context) *GetAirportsParams

WithContext adds the context to the get airports params

func (*GetAirportsParams) WithHTTPClient

func (o *GetAirportsParams) WithHTTPClient(client *http.Client) *GetAirportsParams

WithHTTPClient adds the HTTPClient to the get airports params

func (*GetAirportsParams) WithTimeout

func (o *GetAirportsParams) WithTimeout(timeout time.Duration) *GetAirportsParams

WithTimeout adds the timeout to the get airports params

func (*GetAirportsParams) WriteToRequest

func (o *GetAirportsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetAirportsReader

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

GetAirportsReader is a Reader for the GetAirports structure.

func (*GetAirportsReader) ReadResponse

func (o *GetAirportsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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