Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetOK
- type GetParams
- func (o *GetParams) SetContext(ctx context.Context)
- func (o *GetParams) SetDefaults()
- func (o *GetParams) SetHTTPClient(client *http.Client)
- func (o *GetParams) SetTimeout(timeout time.Duration)
- func (o *GetParams) WithContext(ctx context.Context) *GetParams
- func (o *GetParams) WithDefaults() *GetParams
- func (o *GetParams) WithHTTPClient(client *http.Client) *GetParams
- func (o *GetParams) WithTimeout(timeout time.Duration) *GetParams
- func (o *GetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReader
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 ping API
func (*Client) Get ¶
func (a *Client) Get(params *GetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOK, error)
Get get API
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 { Get(params *GetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOK, 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 ping API client.
type GetOK ¶
type GetOK struct { }
GetOK describes a response with status code 200, with default header values.
Success
type GetParams ¶
type GetParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetParams contains all the parameters to send to the API endpoint
for the get operation. Typically these are written to a http.Request.
func NewGetParams ¶
func NewGetParams() *GetParams
NewGetParams creates a new GetParams 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 NewGetParamsWithContext ¶
NewGetParamsWithContext creates a new GetParams object with the ability to set a context for a request.
func NewGetParamsWithHTTPClient ¶
NewGetParamsWithHTTPClient creates a new GetParams object with the ability to set a custom HTTPClient for a request.
func NewGetParamsWithTimeout ¶
NewGetParamsWithTimeout creates a new GetParams object with the ability to set a timeout on a request.
func (*GetParams) SetContext ¶
SetContext adds the context to the get params
func (*GetParams) SetDefaults ¶
func (o *GetParams) SetDefaults()
SetDefaults hydrates default values in the get params (not the query body).
All values with no default are reset to their zero value.
func (*GetParams) SetHTTPClient ¶
SetHTTPClient adds the HTTPClient to the get params
func (*GetParams) SetTimeout ¶
SetTimeout adds the timeout to the get params
func (*GetParams) WithContext ¶
WithContext adds the context to the get params
func (*GetParams) WithDefaults ¶
WithDefaults hydrates default values in the get params (not the query body).
All values with no default are reset to their zero value.
func (*GetParams) WithHTTPClient ¶
WithHTTPClient adds the HTTPClient to the get params
func (*GetParams) WithTimeout ¶
WithTimeout adds the timeout to the get params
func (*GetParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type GetReader ¶
type GetReader struct {
// contains filtered or unexported fields
}
GetReader is a Reader for the Get structure.
func (*GetReader) ReadResponse ¶
func (o *GetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.