Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type LocationListHTTPBadRequest
- type LocationListHTTPOK
- type LocationListHTTPParams
- func NewLocationListHTTPParams() *LocationListHTTPParams
- func NewLocationListHTTPParamsWithContext(ctx context.Context) *LocationListHTTPParams
- func NewLocationListHTTPParamsWithHTTPClient(client *http.Client) *LocationListHTTPParams
- func NewLocationListHTTPParamsWithTimeout(timeout time.Duration) *LocationListHTTPParams
- func (o *LocationListHTTPParams) SetContext(ctx context.Context)
- func (o *LocationListHTTPParams) SetDefaults()
- func (o *LocationListHTTPParams) SetHTTPClient(client *http.Client)
- func (o *LocationListHTTPParams) SetTimeout(timeout time.Duration)
- func (o *LocationListHTTPParams) WithContext(ctx context.Context) *LocationListHTTPParams
- func (o *LocationListHTTPParams) WithDefaults() *LocationListHTTPParams
- func (o *LocationListHTTPParams) WithHTTPClient(client *http.Client) *LocationListHTTPParams
- func (o *LocationListHTTPParams) WithTimeout(timeout time.Duration) *LocationListHTTPParams
- func (o *LocationListHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LocationListHTTPReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for location API
func (*Client) LocationListHTTP ¶
func (a *Client) LocationListHTTP(params *LocationListHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LocationListHTTPOK, error)
LocationListHTTP lists locations
List locations
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { LocationListHTTP(params *LocationListHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LocationListHTTPOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new location API client.
type LocationListHTTPBadRequest ¶
type LocationListHTTPBadRequest struct {
Payload *models.ErrResponse
}
LocationListHTTPBadRequest describes a response with status code 400, with default header values.
ErrResponse
func NewLocationListHTTPBadRequest ¶
func NewLocationListHTTPBadRequest() *LocationListHTTPBadRequest
NewLocationListHTTPBadRequest creates a LocationListHTTPBadRequest with default headers values
func (*LocationListHTTPBadRequest) Error ¶
func (o *LocationListHTTPBadRequest) Error() string
func (*LocationListHTTPBadRequest) GetPayload ¶
func (o *LocationListHTTPBadRequest) GetPayload() *models.ErrResponse
type LocationListHTTPOK ¶
type LocationListHTTPOK struct {
Payload []*models.ClientLocationRes
}
LocationListHTTPOK describes a response with status code 200, with default header values.
clientLocationRes
func NewLocationListHTTPOK ¶
func NewLocationListHTTPOK() *LocationListHTTPOK
NewLocationListHTTPOK creates a LocationListHTTPOK with default headers values
func (*LocationListHTTPOK) Error ¶
func (o *LocationListHTTPOK) Error() string
func (*LocationListHTTPOK) GetPayload ¶
func (o *LocationListHTTPOK) GetPayload() []*models.ClientLocationRes
type LocationListHTTPParams ¶
type LocationListHTTPParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LocationListHTTPParams contains all the parameters to send to the API endpoint
for the location list Http operation. Typically these are written to a http.Request.
func NewLocationListHTTPParams ¶
func NewLocationListHTTPParams() *LocationListHTTPParams
NewLocationListHTTPParams creates a new LocationListHTTPParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewLocationListHTTPParamsWithContext ¶
func NewLocationListHTTPParamsWithContext(ctx context.Context) *LocationListHTTPParams
NewLocationListHTTPParamsWithContext creates a new LocationListHTTPParams object with the ability to set a context for a request.
func NewLocationListHTTPParamsWithHTTPClient ¶
func NewLocationListHTTPParamsWithHTTPClient(client *http.Client) *LocationListHTTPParams
NewLocationListHTTPParamsWithHTTPClient creates a new LocationListHTTPParams object with the ability to set a custom HTTPClient for a request.
func NewLocationListHTTPParamsWithTimeout ¶
func NewLocationListHTTPParamsWithTimeout(timeout time.Duration) *LocationListHTTPParams
NewLocationListHTTPParamsWithTimeout creates a new LocationListHTTPParams object with the ability to set a timeout on a request.
func (*LocationListHTTPParams) SetContext ¶
func (o *LocationListHTTPParams) SetContext(ctx context.Context)
SetContext adds the context to the location list Http params
func (*LocationListHTTPParams) SetDefaults ¶
func (o *LocationListHTTPParams) SetDefaults()
SetDefaults hydrates default values in the location list Http params (not the query body).
All values with no default are reset to their zero value.
func (*LocationListHTTPParams) SetHTTPClient ¶
func (o *LocationListHTTPParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the location list Http params
func (*LocationListHTTPParams) SetTimeout ¶
func (o *LocationListHTTPParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the location list Http params
func (*LocationListHTTPParams) WithContext ¶
func (o *LocationListHTTPParams) WithContext(ctx context.Context) *LocationListHTTPParams
WithContext adds the context to the location list Http params
func (*LocationListHTTPParams) WithDefaults ¶
func (o *LocationListHTTPParams) WithDefaults() *LocationListHTTPParams
WithDefaults hydrates default values in the location list Http params (not the query body).
All values with no default are reset to their zero value.
func (*LocationListHTTPParams) WithHTTPClient ¶
func (o *LocationListHTTPParams) WithHTTPClient(client *http.Client) *LocationListHTTPParams
WithHTTPClient adds the HTTPClient to the location list Http params
func (*LocationListHTTPParams) WithTimeout ¶
func (o *LocationListHTTPParams) WithTimeout(timeout time.Duration) *LocationListHTTPParams
WithTimeout adds the timeout to the location list Http params
func (*LocationListHTTPParams) WriteToRequest ¶
func (o *LocationListHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LocationListHTTPReader ¶
type LocationListHTTPReader struct {
// contains filtered or unexported fields
}
LocationListHTTPReader is a Reader for the LocationListHTTP structure.
func (*LocationListHTTPReader) ReadResponse ¶
func (o *LocationListHTTPReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.