predict

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2017 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 DatasetStreamOKCode int = 200

DatasetStreamOKCode is the HTTP code returned for type DatasetStreamOK

View Source
const ImagesOKCode int = 200

ImagesOKCode is the HTTP code returned for type ImagesOK

View Source
const ImagesStreamOKCode int = 200

ImagesStreamOKCode is the HTTP code returned for type ImagesStreamOK

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

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

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 close o k

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

	/*
	  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) 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 /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

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

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

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

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

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

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

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

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

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

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

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 open o k

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

	/*
	  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) 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 /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

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 reset o k

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

	/*
	  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) 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

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

func (*Urls) ServeHTTP

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

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 NewUrlsOK

func NewUrlsOK() *UrlsOK

NewUrlsOK creates UrlsOK with default headers values

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

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

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

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

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

Build a url path and query string

func (*UrlsURL) BuildFull

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

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

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

func (o *UrlsURL) String() string

String returns the string representation of the path with query string

func (*UrlsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UrlsURL) WithBasePath

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