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 DatasetStream
- type DatasetStreamHandler
- type DatasetStreamHandlerFunc
- type DatasetStreamOK
- type DatasetStreamParams
- type DatasetStreamURL
- func (o *DatasetStreamURL) Build() (*url.URL, error)
- func (o *DatasetStreamURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DatasetStreamURL) Must(u *url.URL, err error) *url.URL
- func (o *DatasetStreamURL) SetBasePath(bp string)
- func (o *DatasetStreamURL) String() string
- func (o *DatasetStreamURL) StringFull(scheme, host string) string
- func (o *DatasetStreamURL) WithBasePath(bp string) *DatasetStreamURL
- 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 ImagesStream
- type ImagesStreamHandler
- type ImagesStreamHandlerFunc
- type ImagesStreamOK
- type ImagesStreamParams
- type ImagesStreamURL
- func (o *ImagesStreamURL) Build() (*url.URL, error)
- func (o *ImagesStreamURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImagesStreamURL) Must(u *url.URL, err error) *url.URL
- func (o *ImagesStreamURL) SetBasePath(bp string)
- func (o *ImagesStreamURL) String() string
- func (o *ImagesStreamURL) StringFull(scheme, host string) string
- func (o *ImagesStreamURL) WithBasePath(bp string) *ImagesStreamURL
- 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 UrlsStream
- type UrlsStreamHandler
- type UrlsStreamHandlerFunc
- type UrlsStreamOK
- type UrlsStreamParams
- type UrlsStreamURL
- func (o *UrlsStreamURL) Build() (*url.URL, error)
- func (o *UrlsStreamURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UrlsStreamURL) Must(u *url.URL, err error) *url.URL
- func (o *UrlsStreamURL) SetBasePath(bp string)
- func (o *UrlsStreamURL) String() string
- func (o *UrlsStreamURL) StringFull(scheme, host string) string
- func (o *UrlsStreamURL) WithBasePath(bp string) *UrlsStreamURL
- 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 DatasetStreamOKCode int = 200
DatasetStreamOKCode is the HTTP code returned for type DatasetStreamOK
const ImagesOKCode int = 200
ImagesOKCode is the HTTP code returned for type ImagesOK
const ImagesStreamOKCode int = 200
ImagesStreamOKCode is the HTTP code returned for type ImagesStreamOK
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
const UrlsStreamOKCode int = 200
UrlsStreamOKCode is the HTTP code returned for type UrlsStreamOK
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 /v1/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 close o k
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 /* Required: true In: body */ Body *models.DlframeworkPredictor }
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 with the default values initialized.
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
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 /v1/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 dataset o k
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 /* 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 with the default values initialized.
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
type DatasetStream ¶
type DatasetStream struct { Context *middleware.Context Handler DatasetStreamHandler }
DatasetStream swagger:route POST /v1/predict/stream/dataset Predict datasetStream
Dataset method receives a single dataset and runs the predictor on all elements of the dataset.
The result is a prediction feature stream.
func NewDatasetStream ¶
func NewDatasetStream(ctx *middleware.Context, handler DatasetStreamHandler) *DatasetStream
NewDatasetStream creates a new http.Handler for the dataset stream operation
func (*DatasetStream) ServeHTTP ¶
func (o *DatasetStream) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DatasetStreamHandler ¶
type DatasetStreamHandler interface {
Handle(DatasetStreamParams) middleware.Responder
}
DatasetStreamHandler interface for that can handle valid dataset stream params
type DatasetStreamHandlerFunc ¶
type DatasetStreamHandlerFunc func(DatasetStreamParams) middleware.Responder
DatasetStreamHandlerFunc turns a function with the right signature into a dataset stream handler
func (DatasetStreamHandlerFunc) Handle ¶
func (fn DatasetStreamHandlerFunc) Handle(params DatasetStreamParams) middleware.Responder
Handle executing the request and returning a response
type DatasetStreamOK ¶
type DatasetStreamOK struct { /* In: Body */ Payload *models.DlframeworkFeatureResponse `json:"body,omitempty"` }
DatasetStreamOK (streaming responses)
swagger:response datasetStreamOK
func NewDatasetStreamOK ¶
func NewDatasetStreamOK() *DatasetStreamOK
NewDatasetStreamOK creates DatasetStreamOK with default headers values
func (*DatasetStreamOK) SetPayload ¶
func (o *DatasetStreamOK) SetPayload(payload *models.DlframeworkFeatureResponse)
SetPayload sets the payload to the dataset stream o k response
func (*DatasetStreamOK) WithPayload ¶
func (o *DatasetStreamOK) WithPayload(payload *models.DlframeworkFeatureResponse) *DatasetStreamOK
WithPayload adds the payload to the dataset stream o k response
func (*DatasetStreamOK) WriteResponse ¶
func (o *DatasetStreamOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DatasetStreamParams ¶
type DatasetStreamParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: body */ Body *models.DlframeworkDatasetRequest }
DatasetStreamParams contains all the bound params for the dataset stream operation typically these are obtained from a http.Request
swagger:parameters DatasetStream
func NewDatasetStreamParams ¶
func NewDatasetStreamParams() DatasetStreamParams
NewDatasetStreamParams creates a new DatasetStreamParams object with the default values initialized.
func (*DatasetStreamParams) BindRequest ¶
func (o *DatasetStreamParams) 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 DatasetStreamURL ¶
type DatasetStreamURL struct {
// contains filtered or unexported fields
}
DatasetStreamURL generates an URL for the dataset stream operation
func (*DatasetStreamURL) Build ¶
func (o *DatasetStreamURL) Build() (*url.URL, error)
Build a url path and query string
func (*DatasetStreamURL) BuildFull ¶
func (o *DatasetStreamURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DatasetStreamURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DatasetStreamURL) SetBasePath ¶
func (o *DatasetStreamURL) 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 (*DatasetStreamURL) String ¶
func (o *DatasetStreamURL) String() string
String returns the string representation of the path with query string
func (*DatasetStreamURL) StringFull ¶
func (o *DatasetStreamURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DatasetStreamURL) WithBasePath ¶
func (o *DatasetStreamURL) WithBasePath(bp string) *DatasetStreamURL
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 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 /v1/predict/images Predict images
Image method receives a list 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 images o k
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 /* 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 with the default values initialized.
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
type ImagesStream ¶
type ImagesStream struct { Context *middleware.Context Handler ImagesStreamHandler }
ImagesStream swagger:route POST /v1/predict/stream/images Predict imagesStream
Image method receives a list base64 encoded images and runs the predictor on all the images.
The result is a prediction feature stream for each image.
func NewImagesStream ¶
func NewImagesStream(ctx *middleware.Context, handler ImagesStreamHandler) *ImagesStream
NewImagesStream creates a new http.Handler for the images stream operation
func (*ImagesStream) ServeHTTP ¶
func (o *ImagesStream) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ImagesStreamHandler ¶
type ImagesStreamHandler interface {
Handle(ImagesStreamParams) middleware.Responder
}
ImagesStreamHandler interface for that can handle valid images stream params
type ImagesStreamHandlerFunc ¶
type ImagesStreamHandlerFunc func(ImagesStreamParams) middleware.Responder
ImagesStreamHandlerFunc turns a function with the right signature into a images stream handler
func (ImagesStreamHandlerFunc) Handle ¶
func (fn ImagesStreamHandlerFunc) Handle(params ImagesStreamParams) middleware.Responder
Handle executing the request and returning a response
type ImagesStreamOK ¶
type ImagesStreamOK struct { /* In: Body */ Payload *models.DlframeworkFeatureResponse `json:"body,omitempty"` }
ImagesStreamOK (streaming responses)
swagger:response imagesStreamOK
func NewImagesStreamOK ¶
func NewImagesStreamOK() *ImagesStreamOK
NewImagesStreamOK creates ImagesStreamOK with default headers values
func (*ImagesStreamOK) SetPayload ¶
func (o *ImagesStreamOK) SetPayload(payload *models.DlframeworkFeatureResponse)
SetPayload sets the payload to the images stream o k response
func (*ImagesStreamOK) WithPayload ¶
func (o *ImagesStreamOK) WithPayload(payload *models.DlframeworkFeatureResponse) *ImagesStreamOK
WithPayload adds the payload to the images stream o k response
func (*ImagesStreamOK) WriteResponse ¶
func (o *ImagesStreamOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImagesStreamParams ¶
type ImagesStreamParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: body */ Body *models.DlframeworkImagesRequest }
ImagesStreamParams contains all the bound params for the images stream operation typically these are obtained from a http.Request
swagger:parameters ImagesStream
func NewImagesStreamParams ¶
func NewImagesStreamParams() ImagesStreamParams
NewImagesStreamParams creates a new ImagesStreamParams object with the default values initialized.
func (*ImagesStreamParams) BindRequest ¶
func (o *ImagesStreamParams) 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 ImagesStreamURL ¶
type ImagesStreamURL struct {
// contains filtered or unexported fields
}
ImagesStreamURL generates an URL for the images stream operation
func (*ImagesStreamURL) Build ¶
func (o *ImagesStreamURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImagesStreamURL) BuildFull ¶
func (o *ImagesStreamURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImagesStreamURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImagesStreamURL) SetBasePath ¶
func (o *ImagesStreamURL) 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 (*ImagesStreamURL) String ¶
func (o *ImagesStreamURL) String() string
String returns the string representation of the path with query string
func (*ImagesStreamURL) StringFull ¶
func (o *ImagesStreamURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImagesStreamURL) WithBasePath ¶
func (o *ImagesStreamURL) WithBasePath(bp string) *ImagesStreamURL
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 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 /v1/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 open o k
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 /* 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 with the default values initialized.
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
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 /v1/predict/reset Predict reset
Clear 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 reset o k
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 /* 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 with the default values initialized.
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
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 ¶
type Urls struct { Context *middleware.Context Handler UrlsHandler }
Urls swagger:route POST /v1/predict/urls Predict urls
Image method receives a stream of urls and runs the predictor on all the urls. The
The result is a prediction feature stream for each url.
func NewUrls ¶
func NewUrls(ctx *middleware.Context, handler UrlsHandler) *Urls
NewUrls creates a new http.Handler for the urls operation
type UrlsHandler ¶
type UrlsHandler interface {
Handle(UrlsParams) middleware.Responder
}
UrlsHandler interface for that can handle valid urls params
type UrlsHandlerFunc ¶
type UrlsHandlerFunc func(UrlsParams) middleware.Responder
UrlsHandlerFunc turns a function with the right signature into a urls handler
func (UrlsHandlerFunc) Handle ¶
func (fn UrlsHandlerFunc) Handle(params UrlsParams) middleware.Responder
Handle executing the request and returning a response
type UrlsOK ¶
type UrlsOK struct { /* In: Body */ Payload *models.DlframeworkFeaturesResponse `json:"body,omitempty"` }
UrlsOK urls o k
swagger:response urlsOK
func (*UrlsOK) SetPayload ¶
func (o *UrlsOK) SetPayload(payload *models.DlframeworkFeaturesResponse)
SetPayload sets the payload to the urls o k response
func (*UrlsOK) WithPayload ¶
func (o *UrlsOK) WithPayload(payload *models.DlframeworkFeaturesResponse) *UrlsOK
WithPayload adds the payload to the urls o k response
func (*UrlsOK) WriteResponse ¶
func (o *UrlsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UrlsParams ¶
type UrlsParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: body */ Body *models.DlframeworkUrlsRequest }
UrlsParams contains all the bound params for the urls operation typically these are obtained from a http.Request
swagger:parameters URLs
func NewUrlsParams ¶
func NewUrlsParams() UrlsParams
NewUrlsParams creates a new UrlsParams object with the default values initialized.
func (*UrlsParams) BindRequest ¶
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
type UrlsStream ¶
type UrlsStream struct { Context *middleware.Context Handler UrlsStreamHandler }
UrlsStream swagger:route POST /v1/predict/stream/urls Predict urlsStream
Image method receives a stream of urls and runs the predictor on all the urls. The
The result is a prediction feature stream for each url.
func NewUrlsStream ¶
func NewUrlsStream(ctx *middleware.Context, handler UrlsStreamHandler) *UrlsStream
NewUrlsStream creates a new http.Handler for the urls stream operation
func (*UrlsStream) ServeHTTP ¶
func (o *UrlsStream) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UrlsStreamHandler ¶
type UrlsStreamHandler interface {
Handle(UrlsStreamParams) middleware.Responder
}
UrlsStreamHandler interface for that can handle valid urls stream params
type UrlsStreamHandlerFunc ¶
type UrlsStreamHandlerFunc func(UrlsStreamParams) middleware.Responder
UrlsStreamHandlerFunc turns a function with the right signature into a urls stream handler
func (UrlsStreamHandlerFunc) Handle ¶
func (fn UrlsStreamHandlerFunc) Handle(params UrlsStreamParams) middleware.Responder
Handle executing the request and returning a response
type UrlsStreamOK ¶
type UrlsStreamOK struct { /* In: Body */ Payload *models.DlframeworkFeatureResponse `json:"body,omitempty"` }
UrlsStreamOK (streaming responses)
swagger:response urlsStreamOK
func NewUrlsStreamOK ¶
func NewUrlsStreamOK() *UrlsStreamOK
NewUrlsStreamOK creates UrlsStreamOK with default headers values
func (*UrlsStreamOK) SetPayload ¶
func (o *UrlsStreamOK) SetPayload(payload *models.DlframeworkFeatureResponse)
SetPayload sets the payload to the urls stream o k response
func (*UrlsStreamOK) WithPayload ¶
func (o *UrlsStreamOK) WithPayload(payload *models.DlframeworkFeatureResponse) *UrlsStreamOK
WithPayload adds the payload to the urls stream o k response
func (*UrlsStreamOK) WriteResponse ¶
func (o *UrlsStreamOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UrlsStreamParams ¶
type UrlsStreamParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: body */ Body *models.DlframeworkUrlsRequest }
UrlsStreamParams contains all the bound params for the urls stream operation typically these are obtained from a http.Request
swagger:parameters URLsStream
func NewUrlsStreamParams ¶
func NewUrlsStreamParams() UrlsStreamParams
NewUrlsStreamParams creates a new UrlsStreamParams object with the default values initialized.
func (*UrlsStreamParams) BindRequest ¶
func (o *UrlsStreamParams) 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 UrlsStreamURL ¶
type UrlsStreamURL struct {
// contains filtered or unexported fields
}
UrlsStreamURL generates an URL for the urls stream operation
func (*UrlsStreamURL) Build ¶
func (o *UrlsStreamURL) Build() (*url.URL, error)
Build a url path and query string
func (*UrlsStreamURL) BuildFull ¶
func (o *UrlsStreamURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UrlsStreamURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UrlsStreamURL) SetBasePath ¶
func (o *UrlsStreamURL) 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 (*UrlsStreamURL) String ¶
func (o *UrlsStreamURL) String() string
String returns the string representation of the path with query string
func (*UrlsStreamURL) StringFull ¶
func (o *UrlsStreamURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UrlsStreamURL) WithBasePath ¶
func (o *UrlsStreamURL) WithBasePath(bp string) *UrlsStreamURL
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 UrlsURL ¶
type UrlsURL struct {
// contains filtered or unexported fields
}
UrlsURL generates an URL for the urls operation
func (*UrlsURL) 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 (*UrlsURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*UrlsURL) 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
Source Files ¶
- close.go
- close_parameters.go
- close_responses.go
- close_urlbuilder.go
- dataset.go
- dataset_parameters.go
- dataset_responses.go
- dataset_stream.go
- dataset_stream_parameters.go
- dataset_stream_responses.go
- dataset_stream_urlbuilder.go
- dataset_urlbuilder.go
- images.go
- images_parameters.go
- images_responses.go
- images_stream.go
- images_stream_parameters.go
- images_stream_responses.go
- images_stream_urlbuilder.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
- urls.go
- urls_parameters.go
- urls_responses.go
- urls_stream.go
- urls_stream_parameters.go
- urls_stream_responses.go
- urls_stream_urlbuilder.go
- urls_urlbuilder.go