Documentation ¶
Index ¶
- Constants
- type Close
- type CloseHandler
- type CloseHandlerFunc
- type CloseOK
- type CloseParams
- type CloseURL
- func (o *CloseURL) Build() (*url.URL, error)
- func (o *CloseURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CloseURL) Must(u *url.URL, err error) *url.URL
- func (o *CloseURL) SetBasePath(bp string)
- func (o *CloseURL) String() string
- func (o *CloseURL) StringFull(scheme, host string) string
- func (o *CloseURL) WithBasePath(bp string) *CloseURL
- type Dataset
- type DatasetHandler
- type DatasetHandlerFunc
- type DatasetOK
- type DatasetParams
- type DatasetURL
- func (o *DatasetURL) Build() (*url.URL, error)
- func (o *DatasetURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DatasetURL) Must(u *url.URL, err error) *url.URL
- func (o *DatasetURL) SetBasePath(bp string)
- func (o *DatasetURL) String() string
- func (o *DatasetURL) StringFull(scheme, host string) string
- func (o *DatasetURL) WithBasePath(bp string) *DatasetURL
- type Images
- type ImagesHandler
- type ImagesHandlerFunc
- type ImagesOK
- type ImagesParams
- type ImagesURL
- func (o *ImagesURL) Build() (*url.URL, error)
- func (o *ImagesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImagesURL) Must(u *url.URL, err error) *url.URL
- func (o *ImagesURL) SetBasePath(bp string)
- func (o *ImagesURL) String() string
- func (o *ImagesURL) StringFull(scheme, host string) string
- func (o *ImagesURL) WithBasePath(bp string) *ImagesURL
- type Open
- type OpenHandler
- type OpenHandlerFunc
- type OpenOK
- type OpenParams
- type OpenURL
- func (o *OpenURL) Build() (*url.URL, error)
- func (o *OpenURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *OpenURL) Must(u *url.URL, err error) *url.URL
- func (o *OpenURL) SetBasePath(bp string)
- func (o *OpenURL) String() string
- func (o *OpenURL) StringFull(scheme, host string) string
- func (o *OpenURL) WithBasePath(bp string) *OpenURL
- type Reset
- type ResetHandler
- type ResetHandlerFunc
- type ResetOK
- type ResetParams
- type ResetURL
- func (o *ResetURL) Build() (*url.URL, error)
- func (o *ResetURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ResetURL) Must(u *url.URL, err error) *url.URL
- func (o *ResetURL) SetBasePath(bp string)
- func (o *ResetURL) String() string
- func (o *ResetURL) StringFull(scheme, host string) string
- func (o *ResetURL) WithBasePath(bp string) *ResetURL
- type URLs
- type URLsHandler
- type URLsHandlerFunc
- type URLsOK
- type URLsParams
- type URLsURL
- func (o *URLsURL) Build() (*url.URL, error)
- func (o *URLsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *URLsURL) Must(u *url.URL, err error) *url.URL
- func (o *URLsURL) SetBasePath(bp string)
- func (o *URLsURL) String() string
- func (o *URLsURL) StringFull(scheme, host string) string
- func (o *URLsURL) WithBasePath(bp string) *URLsURL
Constants ¶
const CloseOKCode int = 200
CloseOKCode is the HTTP code returned for type CloseOK
const DatasetOKCode int = 200
DatasetOKCode is the HTTP code returned for type DatasetOK
const ImagesOKCode int = 200
ImagesOKCode is the HTTP code returned for type ImagesOK
const OpenOKCode int = 200
OpenOKCode is the HTTP code returned for type OpenOK
const ResetOKCode int = 200
ResetOKCode is the HTTP code returned for type ResetOK
const URLsOKCode int = 200
URLsOKCode is the HTTP code returned for type URLsOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Close ¶
type Close struct { Context *middleware.Context Handler CloseHandler }
Close swagger:route POST /predict/close Predict close
Close a predictor clear it's memory.
func NewClose ¶
func NewClose(ctx *middleware.Context, handler CloseHandler) *Close
NewClose creates a new http.Handler for the close operation
type CloseHandler ¶
type CloseHandler interface {
Handle(CloseParams) middleware.Responder
}
CloseHandler interface for that can handle valid close params
type CloseHandlerFunc ¶
type CloseHandlerFunc func(CloseParams) middleware.Responder
CloseHandlerFunc turns a function with the right signature into a close handler
func (CloseHandlerFunc) Handle ¶
func (fn CloseHandlerFunc) Handle(params CloseParams) middleware.Responder
Handle executing the request and returning a response
type CloseOK ¶
type CloseOK struct { /* In: Body */ Payload *models.DlframeworkPredictorCloseResponse `json:"body,omitempty"` }
CloseOK A successful response.
swagger:response closeOK
func (*CloseOK) SetPayload ¶
func (o *CloseOK) SetPayload(payload *models.DlframeworkPredictorCloseResponse)
SetPayload sets the payload to the close o k response
func (*CloseOK) WithPayload ¶
func (o *CloseOK) WithPayload(payload *models.DlframeworkPredictorCloseResponse) *CloseOK
WithPayload adds the payload to the close o k response
func (*CloseOK) WriteResponse ¶
func (o *CloseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CloseParams ¶
type CloseParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.DlframeworkPredictorCloseRequest }
CloseParams contains all the bound params for the close operation typically these are obtained from a http.Request
swagger:parameters Close
func NewCloseParams ¶
func NewCloseParams() CloseParams
NewCloseParams creates a new CloseParams object no default values defined in spec.
func (*CloseParams) BindRequest ¶
func (o *CloseParams) 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.
To ensure default values, the struct must have been initialized with NewCloseParams() beforehand.
type CloseURL ¶
type CloseURL struct {
// contains filtered or unexported fields
}
CloseURL generates an URL for the close operation
func (*CloseURL) SetBasePath ¶
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 (*CloseURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*CloseURL) WithBasePath ¶
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
type Dataset ¶
type Dataset struct { Context *middleware.Context Handler DatasetHandler }
Dataset swagger:route POST /predict/dataset Predict dataset
Dataset method receives a single dataset and runs the predictor on all elements of the dataset. The result is a prediction feature list.
func NewDataset ¶
func NewDataset(ctx *middleware.Context, handler DatasetHandler) *Dataset
NewDataset creates a new http.Handler for the dataset operation
type DatasetHandler ¶
type DatasetHandler interface {
Handle(DatasetParams) middleware.Responder
}
DatasetHandler interface for that can handle valid dataset params
type DatasetHandlerFunc ¶
type DatasetHandlerFunc func(DatasetParams) middleware.Responder
DatasetHandlerFunc turns a function with the right signature into a dataset handler
func (DatasetHandlerFunc) Handle ¶
func (fn DatasetHandlerFunc) Handle(params DatasetParams) middleware.Responder
Handle executing the request and returning a response
type DatasetOK ¶
type DatasetOK struct { /* In: Body */ Payload *models.DlframeworkFeaturesResponse `json:"body,omitempty"` }
DatasetOK A successful response.
swagger:response datasetOK
func NewDatasetOK ¶
func NewDatasetOK() *DatasetOK
NewDatasetOK creates DatasetOK with default headers values
func (*DatasetOK) SetPayload ¶
func (o *DatasetOK) SetPayload(payload *models.DlframeworkFeaturesResponse)
SetPayload sets the payload to the dataset o k response
func (*DatasetOK) WithPayload ¶
func (o *DatasetOK) WithPayload(payload *models.DlframeworkFeaturesResponse) *DatasetOK
WithPayload adds the payload to the dataset o k response
func (*DatasetOK) WriteResponse ¶
func (o *DatasetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DatasetParams ¶
type DatasetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.DlframeworkDatasetRequest }
DatasetParams contains all the bound params for the dataset operation typically these are obtained from a http.Request
swagger:parameters Dataset
func NewDatasetParams ¶
func NewDatasetParams() DatasetParams
NewDatasetParams creates a new DatasetParams object no default values defined in spec.
func (*DatasetParams) BindRequest ¶
func (o *DatasetParams) 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.
To ensure default values, the struct must have been initialized with NewDatasetParams() beforehand.
type DatasetURL ¶
type DatasetURL struct {
// contains filtered or unexported fields
}
DatasetURL generates an URL for the dataset operation
func (*DatasetURL) Build ¶
func (o *DatasetURL) Build() (*url.URL, error)
Build a url path and query string
func (*DatasetURL) BuildFull ¶
func (o *DatasetURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DatasetURL) SetBasePath ¶
func (o *DatasetURL) 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 (*DatasetURL) String ¶
func (o *DatasetURL) String() string
String returns the string representation of the path with query string
func (*DatasetURL) StringFull ¶
func (o *DatasetURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DatasetURL) WithBasePath ¶
func (o *DatasetURL) WithBasePath(bp string) *DatasetURL
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
type Images ¶
type Images struct { Context *middleware.Context Handler ImagesHandler }
Images swagger:route POST /predict/images Predict images
Images method receives a list of base64 encoded images and runs the predictor on all the images. The result is a prediction feature list for each image.
func NewImages ¶
func NewImages(ctx *middleware.Context, handler ImagesHandler) *Images
NewImages creates a new http.Handler for the images operation
type ImagesHandler ¶
type ImagesHandler interface {
Handle(ImagesParams) middleware.Responder
}
ImagesHandler interface for that can handle valid images params
type ImagesHandlerFunc ¶
type ImagesHandlerFunc func(ImagesParams) middleware.Responder
ImagesHandlerFunc turns a function with the right signature into a images handler
func (ImagesHandlerFunc) Handle ¶
func (fn ImagesHandlerFunc) Handle(params ImagesParams) middleware.Responder
Handle executing the request and returning a response
type ImagesOK ¶
type ImagesOK struct { /* In: Body */ Payload *models.DlframeworkFeaturesResponse `json:"body,omitempty"` }
ImagesOK A successful response.
swagger:response imagesOK
func NewImagesOK ¶
func NewImagesOK() *ImagesOK
NewImagesOK creates ImagesOK with default headers values
func (*ImagesOK) SetPayload ¶
func (o *ImagesOK) SetPayload(payload *models.DlframeworkFeaturesResponse)
SetPayload sets the payload to the images o k response
func (*ImagesOK) WithPayload ¶
func (o *ImagesOK) WithPayload(payload *models.DlframeworkFeaturesResponse) *ImagesOK
WithPayload adds the payload to the images o k response
func (*ImagesOK) WriteResponse ¶
func (o *ImagesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImagesParams ¶
type ImagesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.DlframeworkImagesRequest }
ImagesParams contains all the bound params for the images operation typically these are obtained from a http.Request
swagger:parameters Images
func NewImagesParams ¶
func NewImagesParams() ImagesParams
NewImagesParams creates a new ImagesParams object no default values defined in spec.
func (*ImagesParams) BindRequest ¶
func (o *ImagesParams) 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.
To ensure default values, the struct must have been initialized with NewImagesParams() beforehand.
type ImagesURL ¶
type ImagesURL struct {
// contains filtered or unexported fields
}
ImagesURL generates an URL for the images operation
func (*ImagesURL) SetBasePath ¶
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 (*ImagesURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*ImagesURL) WithBasePath ¶
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
type Open ¶
type Open struct { Context *middleware.Context Handler OpenHandler }
Open swagger:route POST /predict/open Predict open
Opens a predictor and returns an id where the predictor is accessible. The id can be used to perform inference requests.
func NewOpen ¶
func NewOpen(ctx *middleware.Context, handler OpenHandler) *Open
NewOpen creates a new http.Handler for the open operation
type OpenHandler ¶
type OpenHandler interface {
Handle(OpenParams) middleware.Responder
}
OpenHandler interface for that can handle valid open params
type OpenHandlerFunc ¶
type OpenHandlerFunc func(OpenParams) middleware.Responder
OpenHandlerFunc turns a function with the right signature into a open handler
func (OpenHandlerFunc) Handle ¶
func (fn OpenHandlerFunc) Handle(params OpenParams) middleware.Responder
Handle executing the request and returning a response
type OpenOK ¶
type OpenOK struct { /* In: Body */ Payload *models.DlframeworkPredictor `json:"body,omitempty"` }
OpenOK A successful response.
swagger:response openOK
func (*OpenOK) SetPayload ¶
func (o *OpenOK) SetPayload(payload *models.DlframeworkPredictor)
SetPayload sets the payload to the open o k response
func (*OpenOK) WithPayload ¶
func (o *OpenOK) WithPayload(payload *models.DlframeworkPredictor) *OpenOK
WithPayload adds the payload to the open o k response
func (*OpenOK) WriteResponse ¶
func (o *OpenOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type OpenParams ¶
type OpenParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.DlframeworkPredictorOpenRequest }
OpenParams contains all the bound params for the open operation typically these are obtained from a http.Request
swagger:parameters Open
func NewOpenParams ¶
func NewOpenParams() OpenParams
NewOpenParams creates a new OpenParams object no default values defined in spec.
func (*OpenParams) BindRequest ¶
func (o *OpenParams) 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.
To ensure default values, the struct must have been initialized with NewOpenParams() beforehand.
type OpenURL ¶
type OpenURL struct {
// contains filtered or unexported fields
}
OpenURL generates an URL for the open operation
func (*OpenURL) SetBasePath ¶
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 (*OpenURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*OpenURL) WithBasePath ¶
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
type Reset ¶
type Reset struct { Context *middleware.Context Handler ResetHandler }
Reset swagger:route POST /predict/reset Predict reset
Reset method clears the internal cache of the predictors
func NewReset ¶
func NewReset(ctx *middleware.Context, handler ResetHandler) *Reset
NewReset creates a new http.Handler for the reset operation
type ResetHandler ¶
type ResetHandler interface {
Handle(ResetParams) middleware.Responder
}
ResetHandler interface for that can handle valid reset params
type ResetHandlerFunc ¶
type ResetHandlerFunc func(ResetParams) middleware.Responder
ResetHandlerFunc turns a function with the right signature into a reset handler
func (ResetHandlerFunc) Handle ¶
func (fn ResetHandlerFunc) Handle(params ResetParams) middleware.Responder
Handle executing the request and returning a response
type ResetOK ¶
type ResetOK struct { /* In: Body */ Payload *models.DlframeworkResetResponse `json:"body,omitempty"` }
ResetOK A successful response.
swagger:response resetOK
func (*ResetOK) SetPayload ¶
func (o *ResetOK) SetPayload(payload *models.DlframeworkResetResponse)
SetPayload sets the payload to the reset o k response
func (*ResetOK) WithPayload ¶
func (o *ResetOK) WithPayload(payload *models.DlframeworkResetResponse) *ResetOK
WithPayload adds the payload to the reset o k response
func (*ResetOK) WriteResponse ¶
func (o *ResetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ResetParams ¶
type ResetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.DlframeworkResetRequest }
ResetParams contains all the bound params for the reset operation typically these are obtained from a http.Request
swagger:parameters Reset
func NewResetParams ¶
func NewResetParams() ResetParams
NewResetParams creates a new ResetParams object no default values defined in spec.
func (*ResetParams) BindRequest ¶
func (o *ResetParams) 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.
To ensure default values, the struct must have been initialized with NewResetParams() beforehand.
type ResetURL ¶
type ResetURL struct {
// contains filtered or unexported fields
}
ResetURL generates an URL for the reset operation
func (*ResetURL) SetBasePath ¶
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 (*ResetURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*ResetURL) WithBasePath ¶
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
type URLs ¶ added in v0.3.0
type URLs struct { Context *middleware.Context Handler URLsHandler }
URLs swagger:route POST /predict/urls Predict uRLs
URLs method receives a list of urls and runs the predictor on all the urls. The result is a list of predicted features for all the urls.
func NewURLs ¶ added in v0.3.0
func NewURLs(ctx *middleware.Context, handler URLsHandler) *URLs
NewURLs creates a new http.Handler for the u r ls operation
type URLsHandler ¶ added in v0.3.0
type URLsHandler interface {
Handle(URLsParams) middleware.Responder
}
URLsHandler interface for that can handle valid u r ls params
type URLsHandlerFunc ¶ added in v0.3.0
type URLsHandlerFunc func(URLsParams) middleware.Responder
URLsHandlerFunc turns a function with the right signature into a u r ls handler
func (URLsHandlerFunc) Handle ¶ added in v0.3.0
func (fn URLsHandlerFunc) Handle(params URLsParams) middleware.Responder
Handle executing the request and returning a response
type URLsOK ¶ added in v0.3.0
type URLsOK struct { /* In: Body */ Payload *models.DlframeworkFeaturesResponse `json:"body,omitempty"` }
URLsOK A successful response.
swagger:response uRLsOK
func NewURLsOK ¶ added in v0.3.0
func NewURLsOK() *URLsOK
NewURLsOK creates URLsOK with default headers values
func (*URLsOK) SetPayload ¶ added in v0.3.0
func (o *URLsOK) SetPayload(payload *models.DlframeworkFeaturesResponse)
SetPayload sets the payload to the u r ls o k response
func (*URLsOK) WithPayload ¶ added in v0.3.0
func (o *URLsOK) WithPayload(payload *models.DlframeworkFeaturesResponse) *URLsOK
WithPayload adds the payload to the u r ls o k response
func (*URLsOK) WriteResponse ¶ added in v0.3.0
func (o *URLsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type URLsParams ¶ added in v0.3.0
type URLsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.DlframeworkURLsRequest }
URLsParams contains all the bound params for the u r ls operation typically these are obtained from a http.Request
swagger:parameters URLs
func NewURLsParams ¶ added in v0.3.0
func NewURLsParams() URLsParams
NewURLsParams creates a new URLsParams object no default values defined in spec.
func (*URLsParams) BindRequest ¶ added in v0.3.0
func (o *URLsParams) 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.
To ensure default values, the struct must have been initialized with NewURLsParams() beforehand.
type URLsURL ¶ added in v0.3.0
type URLsURL struct {
// contains filtered or unexported fields
}
URLsURL generates an URL for the u r ls operation
func (*URLsURL) BuildFull ¶ added in v0.3.0
BuildFull builds a full url with scheme, host, path and query string
func (*URLsURL) Must ¶ added in v0.3.0
Must is a helper function to panic when the url builder returns an error
func (*URLsURL) SetBasePath ¶ added in v0.3.0
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 (*URLsURL) String ¶ added in v0.3.0
String returns the string representation of the path with query string
func (*URLsURL) StringFull ¶ added in v0.3.0
StringFull returns the string representation of a complete url
func (*URLsURL) WithBasePath ¶ added in v0.3.0
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
Source Files ¶
- close.go
- close_parameters.go
- close_responses.go
- close_urlbuilder.go
- dataset.go
- dataset_parameters.go
- dataset_responses.go
- dataset_urlbuilder.go
- images.go
- images_parameters.go
- images_responses.go
- images_urlbuilder.go
- open.go
- open_parameters.go
- open_responses.go
- open_urlbuilder.go
- reset.go
- reset_parameters.go
- reset_responses.go
- reset_urlbuilder.go
- u_r_ls.go
- u_r_ls_parameters.go
- u_r_ls_responses.go
- u_r_ls_urlbuilder.go