predictor

package
v0.2.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2017 License: NCSA Imports: 10 Imported by: 0

Documentation

Index

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

func (*PredictOK) Error

func (o *PredictOK) Error() string

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL