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