Documentation ¶
Index ¶
- type Client
- type EchoOK
- type EchoParams
- func (o *EchoParams) SetBody(body *models.ExampleStringMessage)
- func (o *EchoParams) SetContext(ctx context.Context)
- func (o *EchoParams) SetHTTPClient(client *http.Client)
- func (o *EchoParams) SetTimeout(timeout time.Duration)
- func (o *EchoParams) WithBody(body *models.ExampleStringMessage) *EchoParams
- func (o *EchoParams) WithContext(ctx context.Context) *EchoParams
- func (o *EchoParams) WithHTTPClient(client *http.Client) *EchoParams
- func (o *EchoParams) WithTimeout(timeout time.Duration) *EchoParams
- func (o *EchoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EchoReader
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 your service API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new your service API client.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type EchoOK ¶
type EchoOK struct {
Payload *models.ExampleStringMessage
}
EchoOK handles this case with default header values.
EchoOK echo o k
type EchoParams ¶
type EchoParams struct { /*Body*/ Body *models.ExampleStringMessage Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EchoParams contains all the parameters to send to the API endpoint for the echo operation typically these are written to a http.Request
func NewEchoParams ¶
func NewEchoParams() *EchoParams
NewEchoParams creates a new EchoParams object with the default values initialized.
func NewEchoParamsWithContext ¶
func NewEchoParamsWithContext(ctx context.Context) *EchoParams
NewEchoParamsWithContext creates a new EchoParams object with the default values initialized, and the ability to set a context for a request
func NewEchoParamsWithHTTPClient ¶
func NewEchoParamsWithHTTPClient(client *http.Client) *EchoParams
NewEchoParamsWithHTTPClient creates a new EchoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewEchoParamsWithTimeout ¶
func NewEchoParamsWithTimeout(timeout time.Duration) *EchoParams
NewEchoParamsWithTimeout creates a new EchoParams object with the default values initialized, and the ability to set a timeout on a request
func (*EchoParams) SetBody ¶
func (o *EchoParams) SetBody(body *models.ExampleStringMessage)
SetBody adds the body to the echo params
func (*EchoParams) SetContext ¶
func (o *EchoParams) SetContext(ctx context.Context)
SetContext adds the context to the echo params
func (*EchoParams) SetHTTPClient ¶
func (o *EchoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the echo params
func (*EchoParams) SetTimeout ¶
func (o *EchoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the echo params
func (*EchoParams) WithBody ¶
func (o *EchoParams) WithBody(body *models.ExampleStringMessage) *EchoParams
WithBody adds the body to the echo params
func (*EchoParams) WithContext ¶
func (o *EchoParams) WithContext(ctx context.Context) *EchoParams
WithContext adds the context to the echo params
func (*EchoParams) WithHTTPClient ¶
func (o *EchoParams) WithHTTPClient(client *http.Client) *EchoParams
WithHTTPClient adds the HTTPClient to the echo params
func (*EchoParams) WithTimeout ¶
func (o *EchoParams) WithTimeout(timeout time.Duration) *EchoParams
WithTimeout adds the timeout to the echo params
func (*EchoParams) WriteToRequest ¶
func (o *EchoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EchoReader ¶
type EchoReader struct {
// contains filtered or unexported fields
}
EchoReader is a Reader for the Echo structure.
func (*EchoReader) ReadResponse ¶
func (o *EchoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.