Documentation
¶
Index ¶
- Constants
- type Predict
- type PredictHandler
- type PredictHandlerFunc
- type PredictOK
- type PredictParams
- type PredictURL
- func (o *PredictURL) Build() (*url.URL, error)
- func (o *PredictURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PredictURL) Must(u *url.URL, err error) *url.URL
- func (o *PredictURL) SetBasePath(bp string)
- func (o *PredictURL) String() string
- func (o *PredictURL) StringFull(scheme, host string) string
- func (o *PredictURL) WithBasePath(bp string) *PredictURL
Constants ¶
const PredictOKCode int = 200
PredictOKCode is the HTTP code returned for type PredictOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Predict ¶
type Predict struct {
Context *middleware.Context
Handler PredictHandler
}
Predict swagger:route POST /v1/predict Predictor predict
Predict predict API
func NewPredict ¶
func NewPredict(ctx *middleware.Context, handler PredictHandler) *Predict
NewPredict creates a new http.Handler for the predict operation
type PredictHandler ¶
type PredictHandler interface {
Handle(PredictParams) middleware.Responder
}
PredictHandler interface for that can handle valid predict params
type PredictHandlerFunc ¶
type PredictHandlerFunc func(PredictParams) middleware.Responder
PredictHandlerFunc turns a function with the right signature into a predict handler
func (PredictHandlerFunc) Handle ¶
func (fn PredictHandlerFunc) Handle(params PredictParams) middleware.Responder
Handle executing the request and returning a response
type PredictOK ¶
type PredictOK struct {
/*
In: Body
*/
Payload *models.DlframeworkPredictResponse `json:"body,omitempty"`
}
PredictOK predict o k
swagger:response predictOK
func NewPredictOK ¶
func NewPredictOK() *PredictOK
NewPredictOK creates PredictOK with default headers values
func (*PredictOK) SetPayload ¶
func (o *PredictOK) SetPayload(payload *models.DlframeworkPredictResponse)
SetPayload sets the payload to the predict o k response
func (*PredictOK) WithPayload ¶
func (o *PredictOK) WithPayload(payload *models.DlframeworkPredictResponse) *PredictOK
WithPayload adds the payload to the predict o k response
func (*PredictOK) WriteResponse ¶
func (o *PredictOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PredictParams ¶
type PredictParams struct {
// HTTP Request Object
HTTPRequest *http.Request
/*
Required: true
In: body
*/
Body *models.DlframeworkPredictRequest
}
PredictParams contains all the bound params for the predict operation typically these are obtained from a http.Request
swagger:parameters Predict
func NewPredictParams ¶
func NewPredictParams() PredictParams
NewPredictParams creates a new PredictParams object with the default values initialized.
func (*PredictParams) BindRequest ¶
func (o *PredictParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type PredictURL ¶
type PredictURL struct {
// contains filtered or unexported fields
}
PredictURL generates an URL for the predict operation
func (*PredictURL) Build ¶
func (o *PredictURL) Build() (*url.URL, error)
Build a url path and query string
func (*PredictURL) BuildFull ¶
func (o *PredictURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PredictURL) SetBasePath ¶
func (o *PredictURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PredictURL) String ¶
func (o *PredictURL) String() string
String returns the string representation of the path with query string
func (*PredictURL) StringFull ¶
func (o *PredictURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PredictURL) WithBasePath ¶
func (o *PredictURL) WithBasePath(bp string) *PredictURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string