Documentation
¶
Index ¶
- type AddAirlineCreated
- type AddAirlineDefault
- type AddAirlineParams
- func (o *AddAirlineParams) SetAirline(airline *models.Airline)
- func (o *AddAirlineParams) SetContext(ctx context.Context)
- func (o *AddAirlineParams) SetHTTPClient(client *http.Client)
- func (o *AddAirlineParams) SetTimeout(timeout time.Duration)
- func (o *AddAirlineParams) WithAirline(airline *models.Airline) *AddAirlineParams
- func (o *AddAirlineParams) WithContext(ctx context.Context) *AddAirlineParams
- func (o *AddAirlineParams) WithHTTPClient(client *http.Client) *AddAirlineParams
- func (o *AddAirlineParams) WithTimeout(timeout time.Duration) *AddAirlineParams
- func (o *AddAirlineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddAirlineReader
- type Client
- type GetAirlinesBadRequest
- type GetAirlinesDefault
- type GetAirlinesOK
- type GetAirlinesParams
- func (o *GetAirlinesParams) SetContext(ctx context.Context)
- func (o *GetAirlinesParams) SetHTTPClient(client *http.Client)
- func (o *GetAirlinesParams) SetTimeout(timeout time.Duration)
- func (o *GetAirlinesParams) WithContext(ctx context.Context) *GetAirlinesParams
- func (o *GetAirlinesParams) WithHTTPClient(client *http.Client) *GetAirlinesParams
- func (o *GetAirlinesParams) WithTimeout(timeout time.Duration) *GetAirlinesParams
- func (o *GetAirlinesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAirlinesReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAirlineCreated ¶
AddAirlineCreated handles this case with default header values.
Created
func NewAddAirlineCreated ¶
func NewAddAirlineCreated() *AddAirlineCreated
NewAddAirlineCreated creates a AddAirlineCreated with default headers values
func (*AddAirlineCreated) Error ¶
func (o *AddAirlineCreated) Error() string
type AddAirlineDefault ¶
AddAirlineDefault handles this case with default header values.
unexpected error
func NewAddAirlineDefault ¶
func NewAddAirlineDefault(code int) *AddAirlineDefault
NewAddAirlineDefault creates a AddAirlineDefault with default headers values
func (*AddAirlineDefault) Code ¶
func (o *AddAirlineDefault) Code() int
Code gets the status code for the add airline default response
func (*AddAirlineDefault) Error ¶
func (o *AddAirlineDefault) Error() string
type AddAirlineParams ¶
type AddAirlineParams struct { /*Airline Airline" */ Airline *models.Airline Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddAirlineParams contains all the parameters to send to the API endpoint for the add airline operation typically these are written to a http.Request
func NewAddAirlineParams ¶
func NewAddAirlineParams() *AddAirlineParams
NewAddAirlineParams creates a new AddAirlineParams object with the default values initialized.
func NewAddAirlineParamsWithContext ¶
func NewAddAirlineParamsWithContext(ctx context.Context) *AddAirlineParams
NewAddAirlineParamsWithContext creates a new AddAirlineParams object with the default values initialized, and the ability to set a context for a request
func NewAddAirlineParamsWithHTTPClient ¶
func NewAddAirlineParamsWithHTTPClient(client *http.Client) *AddAirlineParams
NewAddAirlineParamsWithHTTPClient creates a new AddAirlineParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddAirlineParamsWithTimeout ¶
func NewAddAirlineParamsWithTimeout(timeout time.Duration) *AddAirlineParams
NewAddAirlineParamsWithTimeout creates a new AddAirlineParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddAirlineParams) SetAirline ¶
func (o *AddAirlineParams) SetAirline(airline *models.Airline)
SetAirline adds the airline to the add airline params
func (*AddAirlineParams) SetContext ¶
func (o *AddAirlineParams) SetContext(ctx context.Context)
SetContext adds the context to the add airline params
func (*AddAirlineParams) SetHTTPClient ¶
func (o *AddAirlineParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add airline params
func (*AddAirlineParams) SetTimeout ¶
func (o *AddAirlineParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add airline params
func (*AddAirlineParams) WithAirline ¶
func (o *AddAirlineParams) WithAirline(airline *models.Airline) *AddAirlineParams
WithAirline adds the airline to the add airline params
func (*AddAirlineParams) WithContext ¶
func (o *AddAirlineParams) WithContext(ctx context.Context) *AddAirlineParams
WithContext adds the context to the add airline params
func (*AddAirlineParams) WithHTTPClient ¶
func (o *AddAirlineParams) WithHTTPClient(client *http.Client) *AddAirlineParams
WithHTTPClient adds the HTTPClient to the add airline params
func (*AddAirlineParams) WithTimeout ¶
func (o *AddAirlineParams) WithTimeout(timeout time.Duration) *AddAirlineParams
WithTimeout adds the timeout to the add airline params
func (*AddAirlineParams) WriteToRequest ¶
func (o *AddAirlineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddAirlineReader ¶
type AddAirlineReader struct {
// contains filtered or unexported fields
}
AddAirlineReader is a Reader for the AddAirline structure.
func (*AddAirlineReader) ReadResponse ¶
func (o *AddAirlineReader) 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 airlines API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new airlines API client.
func (*Client) AddAirline ¶
func (a *Client) AddAirline(params *AddAirlineParams) (*AddAirlineCreated, error)
AddAirline Creates a new airline. Duplicates are not allowed
func (*Client) GetAirlines ¶
func (a *Client) GetAirlines(params *GetAirlinesParams) (*GetAirlinesOK, error)
GetAirlines get airlines API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetAirlinesBadRequest ¶
GetAirlinesBadRequest handles this case with default header values.
generic error response
func NewGetAirlinesBadRequest ¶
func NewGetAirlinesBadRequest() *GetAirlinesBadRequest
NewGetAirlinesBadRequest creates a GetAirlinesBadRequest with default headers values
func (*GetAirlinesBadRequest) Error ¶
func (o *GetAirlinesBadRequest) Error() string
type GetAirlinesDefault ¶
GetAirlinesDefault handles this case with default header values.
generic error response
func NewGetAirlinesDefault ¶
func NewGetAirlinesDefault(code int) *GetAirlinesDefault
NewGetAirlinesDefault creates a GetAirlinesDefault with default headers values
func (*GetAirlinesDefault) Code ¶
func (o *GetAirlinesDefault) Code() int
Code gets the status code for the get airlines default response
func (*GetAirlinesDefault) Error ¶
func (o *GetAirlinesDefault) Error() string
type GetAirlinesOK ¶
GetAirlinesOK handles this case with default header values.
list of airlines
func NewGetAirlinesOK ¶
func NewGetAirlinesOK() *GetAirlinesOK
NewGetAirlinesOK creates a GetAirlinesOK with default headers values
func (*GetAirlinesOK) Error ¶
func (o *GetAirlinesOK) Error() string
type GetAirlinesParams ¶
type GetAirlinesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAirlinesParams contains all the parameters to send to the API endpoint for the get airlines operation typically these are written to a http.Request
func NewGetAirlinesParams ¶
func NewGetAirlinesParams() *GetAirlinesParams
NewGetAirlinesParams creates a new GetAirlinesParams object with the default values initialized.
func NewGetAirlinesParamsWithContext ¶
func NewGetAirlinesParamsWithContext(ctx context.Context) *GetAirlinesParams
NewGetAirlinesParamsWithContext creates a new GetAirlinesParams object with the default values initialized, and the ability to set a context for a request
func NewGetAirlinesParamsWithHTTPClient ¶
func NewGetAirlinesParamsWithHTTPClient(client *http.Client) *GetAirlinesParams
NewGetAirlinesParamsWithHTTPClient creates a new GetAirlinesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetAirlinesParamsWithTimeout ¶
func NewGetAirlinesParamsWithTimeout(timeout time.Duration) *GetAirlinesParams
NewGetAirlinesParamsWithTimeout creates a new GetAirlinesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetAirlinesParams) SetContext ¶
func (o *GetAirlinesParams) SetContext(ctx context.Context)
SetContext adds the context to the get airlines params
func (*GetAirlinesParams) SetHTTPClient ¶
func (o *GetAirlinesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get airlines params
func (*GetAirlinesParams) SetTimeout ¶
func (o *GetAirlinesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get airlines params
func (*GetAirlinesParams) WithContext ¶
func (o *GetAirlinesParams) WithContext(ctx context.Context) *GetAirlinesParams
WithContext adds the context to the get airlines params
func (*GetAirlinesParams) WithHTTPClient ¶
func (o *GetAirlinesParams) WithHTTPClient(client *http.Client) *GetAirlinesParams
WithHTTPClient adds the HTTPClient to the get airlines params
func (*GetAirlinesParams) WithTimeout ¶
func (o *GetAirlinesParams) WithTimeout(timeout time.Duration) *GetAirlinesParams
WithTimeout adds the timeout to the get airlines params
func (*GetAirlinesParams) WriteToRequest ¶
func (o *GetAirlinesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAirlinesReader ¶
type GetAirlinesReader struct {
// contains filtered or unexported fields
}
GetAirlinesReader is a Reader for the GetAirlines structure.
func (*GetAirlinesReader) ReadResponse ¶
func (o *GetAirlinesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.