predict

package
v1.4.21 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: NCSA Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CloseOKCode int = 200

CloseOKCode is the HTTP code returned for type CloseOK

View Source
const DatasetOKCode int = 200

DatasetOKCode is the HTTP code returned for type DatasetOK

View Source
const ImagesOKCode int = 200

ImagesOKCode is the HTTP code returned for type ImagesOK

View Source
const OpenOKCode int = 200

OpenOKCode is the HTTP code returned for type OpenOK

View Source
const ResetOKCode int = 200

ResetOKCode is the HTTP code returned for type ResetOK

View Source
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

func (*Close) ServeHTTP

func (o *Close) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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 NewCloseOK

func NewCloseOK() *CloseOK

NewCloseOK creates CloseOK with default headers values

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) Build

func (o *CloseURL) Build() (*url.URL, error)

Build a url path and query string

func (*CloseURL) BuildFull

func (o *CloseURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CloseURL) Must

func (o *CloseURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CloseURL) SetBasePath

func (o *CloseURL) 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 (*CloseURL) String

func (o *CloseURL) String() string

String returns the string representation of the path with query string

func (*CloseURL) StringFull

func (o *CloseURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CloseURL) WithBasePath

func (o *CloseURL) WithBasePath(bp string) *CloseURL

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

func (*Dataset) ServeHTTP

func (o *Dataset) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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) Must

func (o *DatasetURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

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

func (*Images) ServeHTTP

func (o *Images) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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) Build

func (o *ImagesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ImagesURL) BuildFull

func (o *ImagesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ImagesURL) Must

func (o *ImagesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ImagesURL) SetBasePath

func (o *ImagesURL) 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 (*ImagesURL) String

func (o *ImagesURL) String() string

String returns the string representation of the path with query string

func (*ImagesURL) StringFull

func (o *ImagesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ImagesURL) WithBasePath

func (o *ImagesURL) WithBasePath(bp string) *ImagesURL

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

func (*Open) ServeHTTP

func (o *Open) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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 NewOpenOK

func NewOpenOK() *OpenOK

NewOpenOK creates OpenOK with default headers values

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) Build

func (o *OpenURL) Build() (*url.URL, error)

Build a url path and query string

func (*OpenURL) BuildFull

func (o *OpenURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*OpenURL) Must

func (o *OpenURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*OpenURL) SetBasePath

func (o *OpenURL) 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 (*OpenURL) String

func (o *OpenURL) String() string

String returns the string representation of the path with query string

func (*OpenURL) StringFull

func (o *OpenURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*OpenURL) WithBasePath

func (o *OpenURL) WithBasePath(bp string) *OpenURL

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

func (*Reset) ServeHTTP

func (o *Reset) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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 NewResetOK

func NewResetOK() *ResetOK

NewResetOK creates ResetOK with default headers values

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) Build

func (o *ResetURL) Build() (*url.URL, error)

Build a url path and query string

func (*ResetURL) BuildFull

func (o *ResetURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ResetURL) Must

func (o *ResetURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ResetURL) SetBasePath

func (o *ResetURL) 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 (*ResetURL) String

func (o *ResetURL) String() string

String returns the string representation of the path with query string

func (*ResetURL) StringFull

func (o *ResetURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ResetURL) WithBasePath

func (o *ResetURL) WithBasePath(bp string) *ResetURL

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

func (*URLs) ServeHTTP added in v0.3.0

func (o *URLs) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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) Build added in v0.3.0

func (o *URLsURL) Build() (*url.URL, error)

Build a url path and query string

func (*URLsURL) BuildFull added in v0.3.0

func (o *URLsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*URLsURL) Must added in v0.3.0

func (o *URLsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*URLsURL) SetBasePath added in v0.3.0

func (o *URLsURL) 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 (*URLsURL) String added in v0.3.0

func (o *URLsURL) String() string

String returns the string representation of the path with query string

func (*URLsURL) StringFull added in v0.3.0

func (o *URLsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*URLsURL) WithBasePath added in v0.3.0

func (o *URLsURL) WithBasePath(bp string) *URLsURL

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

Jump to

Keyboard shortcuts

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