operations

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const FaveAddDocumentsBadRequestCode int = 400

FaveAddDocumentsBadRequestCode is the HTTP code returned for type FaveAddDocumentsBadRequest

View Source
const FaveAddDocumentsForbiddenCode int = 403

FaveAddDocumentsForbiddenCode is the HTTP code returned for type FaveAddDocumentsForbidden

View Source
const FaveAddDocumentsInternalServerErrorCode int = 500

FaveAddDocumentsInternalServerErrorCode is the HTTP code returned for type FaveAddDocumentsInternalServerError

View Source
const FaveAddDocumentsOKCode int = 200

FaveAddDocumentsOKCode is the HTTP code returned for type FaveAddDocumentsOK

View Source
const FaveAddDocumentsUnauthorizedCode int = 401

FaveAddDocumentsUnauthorizedCode is the HTTP code returned for type FaveAddDocumentsUnauthorized

View Source
const FaveAddDocumentsUnprocessableEntityCode int = 422

FaveAddDocumentsUnprocessableEntityCode is the HTTP code returned for type FaveAddDocumentsUnprocessableEntity

View Source
const FaveCreateCollectionBadRequestCode int = 400

FaveCreateCollectionBadRequestCode is the HTTP code returned for type FaveCreateCollectionBadRequest

View Source
const FaveCreateCollectionForbiddenCode int = 403

FaveCreateCollectionForbiddenCode is the HTTP code returned for type FaveCreateCollectionForbidden

View Source
const FaveCreateCollectionInternalServerErrorCode int = 500

FaveCreateCollectionInternalServerErrorCode is the HTTP code returned for type FaveCreateCollectionInternalServerError

View Source
const FaveCreateCollectionOKCode int = 200

FaveCreateCollectionOKCode is the HTTP code returned for type FaveCreateCollectionOK

View Source
const FaveCreateCollectionUnauthorizedCode int = 401

FaveCreateCollectionUnauthorizedCode is the HTTP code returned for type FaveCreateCollectionUnauthorized

View Source
const FaveCreateCollectionUnprocessableEntityCode int = 422

FaveCreateCollectionUnprocessableEntityCode is the HTTP code returned for type FaveCreateCollectionUnprocessableEntity

View Source
const FaveDeleteCollectionBadRequestCode int = 400

FaveDeleteCollectionBadRequestCode is the HTTP code returned for type FaveDeleteCollectionBadRequest

View Source
const FaveDeleteCollectionForbiddenCode int = 403

FaveDeleteCollectionForbiddenCode is the HTTP code returned for type FaveDeleteCollectionForbidden

View Source
const FaveDeleteCollectionInternalServerErrorCode int = 500

FaveDeleteCollectionInternalServerErrorCode is the HTTP code returned for type FaveDeleteCollectionInternalServerError

View Source
const FaveDeleteCollectionOKCode int = 200

FaveDeleteCollectionOKCode is the HTTP code returned for type FaveDeleteCollectionOK

View Source
const FaveDeleteCollectionUnauthorizedCode int = 401

FaveDeleteCollectionUnauthorizedCode is the HTTP code returned for type FaveDeleteCollectionUnauthorized

View Source
const FaveDeleteCollectionUnprocessableEntityCode int = 422

FaveDeleteCollectionUnprocessableEntityCode is the HTTP code returned for type FaveDeleteCollectionUnprocessableEntity

View Source
const FaveGetCollectionsBadRequestCode int = 400

FaveGetCollectionsBadRequestCode is the HTTP code returned for type FaveGetCollectionsBadRequest

View Source
const FaveGetCollectionsForbiddenCode int = 403

FaveGetCollectionsForbiddenCode is the HTTP code returned for type FaveGetCollectionsForbidden

View Source
const FaveGetCollectionsInternalServerErrorCode int = 500

FaveGetCollectionsInternalServerErrorCode is the HTTP code returned for type FaveGetCollectionsInternalServerError

View Source
const FaveGetCollectionsOKCode int = 200

FaveGetCollectionsOKCode is the HTTP code returned for type FaveGetCollectionsOK

View Source
const FaveGetCollectionsUnauthorizedCode int = 401

FaveGetCollectionsUnauthorizedCode is the HTTP code returned for type FaveGetCollectionsUnauthorized

View Source
const FaveGetCollectionsUnprocessableEntityCode int = 422

FaveGetCollectionsUnprocessableEntityCode is the HTTP code returned for type FaveGetCollectionsUnprocessableEntity

View Source
const FaveGetDocumentsBadRequestCode int = 400

FaveGetDocumentsBadRequestCode is the HTTP code returned for type FaveGetDocumentsBadRequest

View Source
const FaveGetDocumentsNotFoundCode int = 404

FaveGetDocumentsNotFoundCode is the HTTP code returned for type FaveGetDocumentsNotFound

View Source
const FaveGetDocumentsOKCode int = 200

FaveGetDocumentsOKCode is the HTTP code returned for type FaveGetDocumentsOK

View Source
const FaveGetNearestDocumentsBadRequestCode int = 400

FaveGetNearestDocumentsBadRequestCode is the HTTP code returned for type FaveGetNearestDocumentsBadRequest

View Source
const FaveGetNearestDocumentsByVectorBadRequestCode int = 400

FaveGetNearestDocumentsByVectorBadRequestCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorBadRequest

View Source
const FaveGetNearestDocumentsByVectorForbiddenCode int = 403

FaveGetNearestDocumentsByVectorForbiddenCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorForbidden

View Source
const FaveGetNearestDocumentsByVectorInternalServerErrorCode int = 500

FaveGetNearestDocumentsByVectorInternalServerErrorCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorInternalServerError

View Source
const FaveGetNearestDocumentsByVectorOKCode int = 200

FaveGetNearestDocumentsByVectorOKCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorOK

View Source
const FaveGetNearestDocumentsByVectorUnauthorizedCode int = 401

FaveGetNearestDocumentsByVectorUnauthorizedCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorUnauthorized

View Source
const FaveGetNearestDocumentsByVectorUnprocessableEntityCode int = 422

FaveGetNearestDocumentsByVectorUnprocessableEntityCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorUnprocessableEntity

View Source
const FaveGetNearestDocumentsForbiddenCode int = 403

FaveGetNearestDocumentsForbiddenCode is the HTTP code returned for type FaveGetNearestDocumentsForbidden

View Source
const FaveGetNearestDocumentsInternalServerErrorCode int = 500

FaveGetNearestDocumentsInternalServerErrorCode is the HTTP code returned for type FaveGetNearestDocumentsInternalServerError

View Source
const FaveGetNearestDocumentsOKCode int = 200

FaveGetNearestDocumentsOKCode is the HTTP code returned for type FaveGetNearestDocumentsOK

View Source
const FaveGetNearestDocumentsUnauthorizedCode int = 401

FaveGetNearestDocumentsUnauthorizedCode is the HTTP code returned for type FaveGetNearestDocumentsUnauthorized

View Source
const FaveGetNearestDocumentsUnprocessableEntityCode int = 422

FaveGetNearestDocumentsUnprocessableEntityCode is the HTTP code returned for type FaveGetNearestDocumentsUnprocessableEntity

View Source
const FaveHelloOKCode int = 200

FaveHelloOKCode is the HTTP code returned for type FaveHelloOK

View Source
const FaveRootOKCode int = 200

FaveRootOKCode is the HTTP code returned for type FaveRootOK

View Source
const GetDocumentsBadRequestCode int = 400

GetDocumentsBadRequestCode is the HTTP code returned for type GetDocumentsBadRequest

View Source
const GetDocumentsNotFoundCode int = 404

GetDocumentsNotFoundCode is the HTTP code returned for type GetDocumentsNotFound

View Source
const GetDocumentsOKCode int = 200

GetDocumentsOKCode is the HTTP code returned for type GetDocumentsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type FaveAPI

type FaveAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator

	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator

	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for the following mime types:
	//   - application/json
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for the following mime types:
	//   - application/json
	JSONProducer runtime.Producer

	// FaveAddDocumentsHandler sets the operation handler for the fave add documents operation
	FaveAddDocumentsHandler FaveAddDocumentsHandler
	// FaveCreateCollectionHandler sets the operation handler for the fave create collection operation
	FaveCreateCollectionHandler FaveCreateCollectionHandler
	// FaveDeleteCollectionHandler sets the operation handler for the fave delete collection operation
	FaveDeleteCollectionHandler FaveDeleteCollectionHandler
	// FaveGetCollectionsHandler sets the operation handler for the fave get collections operation
	FaveGetCollectionsHandler FaveGetCollectionsHandler
	// FaveGetDocumentsHandler sets the operation handler for the fave get documents operation
	FaveGetDocumentsHandler FaveGetDocumentsHandler
	// FaveGetNearestDocumentsHandler sets the operation handler for the fave get nearest documents operation
	FaveGetNearestDocumentsHandler FaveGetNearestDocumentsHandler
	// FaveGetNearestDocumentsByVectorHandler sets the operation handler for the fave get nearest documents by vector operation
	FaveGetNearestDocumentsByVectorHandler FaveGetNearestDocumentsByVectorHandler
	// FaveRootHandler sets the operation handler for the fave root operation
	FaveRootHandler FaveRootHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// PreServerShutdown is called before the HTTP(S) server is shutdown
	// This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic
	PreServerShutdown func()

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

FaveAPI the fave API

func NewFaveAPI

func NewFaveAPI(spec *loads.Document) *FaveAPI

NewFaveAPI creates a new Fave instance

func (*FaveAPI) AddMiddlewareFor

func (o *FaveAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)

AddMiddlewareFor adds a http middleware to existing handler

func (*FaveAPI) AuthenticatorsFor

func (o *FaveAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*FaveAPI) Authorizer

func (o *FaveAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*FaveAPI) ConsumersFor

func (o *FaveAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.

func (*FaveAPI) Context

func (o *FaveAPI) Context() *middleware.Context

Context returns the middleware context for the fave API

func (*FaveAPI) DefaultConsumes

func (o *FaveAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*FaveAPI) DefaultProduces

func (o *FaveAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*FaveAPI) Formats

func (o *FaveAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*FaveAPI) HandlerFor

func (o *FaveAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*FaveAPI) Init

func (o *FaveAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*FaveAPI) ProducersFor

func (o *FaveAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*FaveAPI) RegisterConsumer

func (o *FaveAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*FaveAPI) RegisterFormat

func (o *FaveAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*FaveAPI) RegisterProducer

func (o *FaveAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*FaveAPI) Serve

func (o *FaveAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*FaveAPI) ServeErrorFor

func (o *FaveAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*FaveAPI) SetDefaultConsumes

func (o *FaveAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*FaveAPI) SetDefaultProduces

func (o *FaveAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*FaveAPI) SetSpec

func (o *FaveAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*FaveAPI) UseRedoc

func (o *FaveAPI) UseRedoc()

UseRedoc for documentation at /docs

func (*FaveAPI) UseSwaggerUI

func (o *FaveAPI) UseSwaggerUI()

UseSwaggerUI for documentation at /docs

func (*FaveAPI) Validate

func (o *FaveAPI) Validate() error

Validate validates the registrations in the FaveAPI

type FaveAddDocuments

type FaveAddDocuments struct {
	Context *middleware.Context
	Handler FaveAddDocumentsHandler
}
FaveAddDocuments swagger:route POST /documents faveAddDocuments

Add documents into a collection.

func NewFaveAddDocuments

func NewFaveAddDocuments(ctx *middleware.Context, handler FaveAddDocumentsHandler) *FaveAddDocuments

NewFaveAddDocuments creates a new http.Handler for the fave add documents operation

func (*FaveAddDocuments) ServeHTTP

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

type FaveAddDocumentsBadRequest

type FaveAddDocumentsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveAddDocumentsBadRequest Malformed request.

swagger:response faveAddDocumentsBadRequest

func NewFaveAddDocumentsBadRequest

func NewFaveAddDocumentsBadRequest() *FaveAddDocumentsBadRequest

NewFaveAddDocumentsBadRequest creates FaveAddDocumentsBadRequest with default headers values

func (*FaveAddDocumentsBadRequest) SetPayload

func (o *FaveAddDocumentsBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the fave add documents bad request response

func (*FaveAddDocumentsBadRequest) WithPayload

WithPayload adds the payload to the fave add documents bad request response

func (*FaveAddDocumentsBadRequest) WriteResponse

func (o *FaveAddDocumentsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveAddDocumentsForbidden

type FaveAddDocumentsForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveAddDocumentsForbidden Forbidden

swagger:response faveAddDocumentsForbidden

func NewFaveAddDocumentsForbidden

func NewFaveAddDocumentsForbidden() *FaveAddDocumentsForbidden

NewFaveAddDocumentsForbidden creates FaveAddDocumentsForbidden with default headers values

func (*FaveAddDocumentsForbidden) SetPayload

func (o *FaveAddDocumentsForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the fave add documents forbidden response

func (*FaveAddDocumentsForbidden) WithPayload

WithPayload adds the payload to the fave add documents forbidden response

func (*FaveAddDocumentsForbidden) WriteResponse

func (o *FaveAddDocumentsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveAddDocumentsHandler

type FaveAddDocumentsHandler interface {
	Handle(FaveAddDocumentsParams) middleware.Responder
}

FaveAddDocumentsHandler interface for that can handle valid fave add documents params

type FaveAddDocumentsHandlerFunc

type FaveAddDocumentsHandlerFunc func(FaveAddDocumentsParams) middleware.Responder

FaveAddDocumentsHandlerFunc turns a function with the right signature into a fave add documents handler

func (FaveAddDocumentsHandlerFunc) Handle

Handle executing the request and returning a response

type FaveAddDocumentsInternalServerError

type FaveAddDocumentsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveAddDocumentsInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

swagger:response faveAddDocumentsInternalServerError

func NewFaveAddDocumentsInternalServerError

func NewFaveAddDocumentsInternalServerError() *FaveAddDocumentsInternalServerError

NewFaveAddDocumentsInternalServerError creates FaveAddDocumentsInternalServerError with default headers values

func (*FaveAddDocumentsInternalServerError) SetPayload

SetPayload sets the payload to the fave add documents internal server error response

func (*FaveAddDocumentsInternalServerError) WithPayload

WithPayload adds the payload to the fave add documents internal server error response

func (*FaveAddDocumentsInternalServerError) WriteResponse

WriteResponse to the client

type FaveAddDocumentsOK

type FaveAddDocumentsOK struct {

	/*
	  In: Body
	*/
	Payload *models.OKResponse `json:"body,omitempty"`
}

FaveAddDocumentsOK Successful response

swagger:response faveAddDocumentsOK

func NewFaveAddDocumentsOK

func NewFaveAddDocumentsOK() *FaveAddDocumentsOK

NewFaveAddDocumentsOK creates FaveAddDocumentsOK with default headers values

func (*FaveAddDocumentsOK) SetPayload

func (o *FaveAddDocumentsOK) SetPayload(payload *models.OKResponse)

SetPayload sets the payload to the fave add documents o k response

func (*FaveAddDocumentsOK) WithPayload

func (o *FaveAddDocumentsOK) WithPayload(payload *models.OKResponse) *FaveAddDocumentsOK

WithPayload adds the payload to the fave add documents o k response

func (*FaveAddDocumentsOK) WriteResponse

func (o *FaveAddDocumentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveAddDocumentsParams

type FaveAddDocumentsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.AddDocumentsRequest
}

FaveAddDocumentsParams contains all the bound params for the fave add documents operation typically these are obtained from a http.Request

swagger:parameters fave.addDocuments

func NewFaveAddDocumentsParams

func NewFaveAddDocumentsParams() FaveAddDocumentsParams

NewFaveAddDocumentsParams creates a new FaveAddDocumentsParams object

There are no default values defined in the spec.

func (*FaveAddDocumentsParams) BindRequest

func (o *FaveAddDocumentsParams) 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 NewFaveAddDocumentsParams() beforehand.

type FaveAddDocumentsURL

type FaveAddDocumentsURL struct {
	// contains filtered or unexported fields
}

FaveAddDocumentsURL generates an URL for the fave add documents operation

func (*FaveAddDocumentsURL) Build

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

Build a url path and query string

func (*FaveAddDocumentsURL) BuildFull

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

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

func (*FaveAddDocumentsURL) Must

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

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

func (*FaveAddDocumentsURL) SetBasePath

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

func (o *FaveAddDocumentsURL) String() string

String returns the string representation of the path with query string

func (*FaveAddDocumentsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FaveAddDocumentsURL) WithBasePath

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

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 FaveAddDocumentsUnauthorized

type FaveAddDocumentsUnauthorized struct {
}

FaveAddDocumentsUnauthorized Unauthorized or invalid credentials.

swagger:response faveAddDocumentsUnauthorized

func NewFaveAddDocumentsUnauthorized

func NewFaveAddDocumentsUnauthorized() *FaveAddDocumentsUnauthorized

NewFaveAddDocumentsUnauthorized creates FaveAddDocumentsUnauthorized with default headers values

func (*FaveAddDocumentsUnauthorized) WriteResponse

func (o *FaveAddDocumentsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveAddDocumentsUnprocessableEntity

type FaveAddDocumentsUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveAddDocumentsUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous.

swagger:response faveAddDocumentsUnprocessableEntity

func NewFaveAddDocumentsUnprocessableEntity

func NewFaveAddDocumentsUnprocessableEntity() *FaveAddDocumentsUnprocessableEntity

NewFaveAddDocumentsUnprocessableEntity creates FaveAddDocumentsUnprocessableEntity with default headers values

func (*FaveAddDocumentsUnprocessableEntity) SetPayload

SetPayload sets the payload to the fave add documents unprocessable entity response

func (*FaveAddDocumentsUnprocessableEntity) WithPayload

WithPayload adds the payload to the fave add documents unprocessable entity response

func (*FaveAddDocumentsUnprocessableEntity) WriteResponse

WriteResponse to the client

type FaveCreateCollection

type FaveCreateCollection struct {
	Context *middleware.Context
	Handler FaveCreateCollectionHandler
}
FaveCreateCollection swagger:route POST /collections faveCreateCollection

Create a new collection.

func NewFaveCreateCollection

func NewFaveCreateCollection(ctx *middleware.Context, handler FaveCreateCollectionHandler) *FaveCreateCollection

NewFaveCreateCollection creates a new http.Handler for the fave create collection operation

func (*FaveCreateCollection) ServeHTTP

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

type FaveCreateCollectionBadRequest

type FaveCreateCollectionBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveCreateCollectionBadRequest Malformed request.

swagger:response faveCreateCollectionBadRequest

func NewFaveCreateCollectionBadRequest

func NewFaveCreateCollectionBadRequest() *FaveCreateCollectionBadRequest

NewFaveCreateCollectionBadRequest creates FaveCreateCollectionBadRequest with default headers values

func (*FaveCreateCollectionBadRequest) SetPayload

func (o *FaveCreateCollectionBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the fave create collection bad request response

func (*FaveCreateCollectionBadRequest) WithPayload

WithPayload adds the payload to the fave create collection bad request response

func (*FaveCreateCollectionBadRequest) WriteResponse

func (o *FaveCreateCollectionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveCreateCollectionForbidden

type FaveCreateCollectionForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveCreateCollectionForbidden Forbidden

swagger:response faveCreateCollectionForbidden

func NewFaveCreateCollectionForbidden

func NewFaveCreateCollectionForbidden() *FaveCreateCollectionForbidden

NewFaveCreateCollectionForbidden creates FaveCreateCollectionForbidden with default headers values

func (*FaveCreateCollectionForbidden) SetPayload

func (o *FaveCreateCollectionForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the fave create collection forbidden response

func (*FaveCreateCollectionForbidden) WithPayload

WithPayload adds the payload to the fave create collection forbidden response

func (*FaveCreateCollectionForbidden) WriteResponse

func (o *FaveCreateCollectionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveCreateCollectionHandler

type FaveCreateCollectionHandler interface {
	Handle(FaveCreateCollectionParams) middleware.Responder
}

FaveCreateCollectionHandler interface for that can handle valid fave create collection params

type FaveCreateCollectionHandlerFunc

type FaveCreateCollectionHandlerFunc func(FaveCreateCollectionParams) middleware.Responder

FaveCreateCollectionHandlerFunc turns a function with the right signature into a fave create collection handler

func (FaveCreateCollectionHandlerFunc) Handle

Handle executing the request and returning a response

type FaveCreateCollectionInternalServerError

type FaveCreateCollectionInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveCreateCollectionInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

swagger:response faveCreateCollectionInternalServerError

func NewFaveCreateCollectionInternalServerError

func NewFaveCreateCollectionInternalServerError() *FaveCreateCollectionInternalServerError

NewFaveCreateCollectionInternalServerError creates FaveCreateCollectionInternalServerError with default headers values

func (*FaveCreateCollectionInternalServerError) SetPayload

SetPayload sets the payload to the fave create collection internal server error response

func (*FaveCreateCollectionInternalServerError) WithPayload

WithPayload adds the payload to the fave create collection internal server error response

func (*FaveCreateCollectionInternalServerError) WriteResponse

WriteResponse to the client

type FaveCreateCollectionOK

type FaveCreateCollectionOK struct {

	/*
	  In: Body
	*/
	Payload *models.OKResponse `json:"body,omitempty"`
}

FaveCreateCollectionOK collection added

swagger:response faveCreateCollectionOK

func NewFaveCreateCollectionOK

func NewFaveCreateCollectionOK() *FaveCreateCollectionOK

NewFaveCreateCollectionOK creates FaveCreateCollectionOK with default headers values

func (*FaveCreateCollectionOK) SetPayload

func (o *FaveCreateCollectionOK) SetPayload(payload *models.OKResponse)

SetPayload sets the payload to the fave create collection o k response

func (*FaveCreateCollectionOK) WithPayload

WithPayload adds the payload to the fave create collection o k response

func (*FaveCreateCollectionOK) WriteResponse

func (o *FaveCreateCollectionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveCreateCollectionParams

type FaveCreateCollectionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.Collection
}

FaveCreateCollectionParams contains all the bound params for the fave create collection operation typically these are obtained from a http.Request

swagger:parameters fave.createCollection

func NewFaveCreateCollectionParams

func NewFaveCreateCollectionParams() FaveCreateCollectionParams

NewFaveCreateCollectionParams creates a new FaveCreateCollectionParams object

There are no default values defined in the spec.

func (*FaveCreateCollectionParams) BindRequest

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 NewFaveCreateCollectionParams() beforehand.

type FaveCreateCollectionURL

type FaveCreateCollectionURL struct {
	// contains filtered or unexported fields
}

FaveCreateCollectionURL generates an URL for the fave create collection operation

func (*FaveCreateCollectionURL) Build

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

Build a url path and query string

func (*FaveCreateCollectionURL) BuildFull

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

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

func (*FaveCreateCollectionURL) Must

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

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

func (*FaveCreateCollectionURL) SetBasePath

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

func (o *FaveCreateCollectionURL) String() string

String returns the string representation of the path with query string

func (*FaveCreateCollectionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FaveCreateCollectionURL) 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 FaveCreateCollectionUnauthorized

type FaveCreateCollectionUnauthorized struct {
}

FaveCreateCollectionUnauthorized Unauthorized or invalid credentials.

swagger:response faveCreateCollectionUnauthorized

func NewFaveCreateCollectionUnauthorized

func NewFaveCreateCollectionUnauthorized() *FaveCreateCollectionUnauthorized

NewFaveCreateCollectionUnauthorized creates FaveCreateCollectionUnauthorized with default headers values

func (*FaveCreateCollectionUnauthorized) WriteResponse

func (o *FaveCreateCollectionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveCreateCollectionUnprocessableEntity

type FaveCreateCollectionUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveCreateCollectionUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous.

swagger:response faveCreateCollectionUnprocessableEntity

func NewFaveCreateCollectionUnprocessableEntity

func NewFaveCreateCollectionUnprocessableEntity() *FaveCreateCollectionUnprocessableEntity

NewFaveCreateCollectionUnprocessableEntity creates FaveCreateCollectionUnprocessableEntity with default headers values

func (*FaveCreateCollectionUnprocessableEntity) SetPayload

SetPayload sets the payload to the fave create collection unprocessable entity response

func (*FaveCreateCollectionUnprocessableEntity) WithPayload

WithPayload adds the payload to the fave create collection unprocessable entity response

func (*FaveCreateCollectionUnprocessableEntity) WriteResponse

WriteResponse to the client

type FaveDeleteCollection

type FaveDeleteCollection struct {
	Context *middleware.Context
	Handler FaveDeleteCollectionHandler
}
FaveDeleteCollection swagger:route DELETE /collections/{collection} faveDeleteCollection

Delete a collection.

func NewFaveDeleteCollection

func NewFaveDeleteCollection(ctx *middleware.Context, handler FaveDeleteCollectionHandler) *FaveDeleteCollection

NewFaveDeleteCollection creates a new http.Handler for the fave delete collection operation

func (*FaveDeleteCollection) ServeHTTP

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

type FaveDeleteCollectionBadRequest

type FaveDeleteCollectionBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveDeleteCollectionBadRequest Malformed request.

swagger:response faveDeleteCollectionBadRequest

func NewFaveDeleteCollectionBadRequest

func NewFaveDeleteCollectionBadRequest() *FaveDeleteCollectionBadRequest

NewFaveDeleteCollectionBadRequest creates FaveDeleteCollectionBadRequest with default headers values

func (*FaveDeleteCollectionBadRequest) SetPayload

func (o *FaveDeleteCollectionBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the fave delete collection bad request response

func (*FaveDeleteCollectionBadRequest) WithPayload

WithPayload adds the payload to the fave delete collection bad request response

func (*FaveDeleteCollectionBadRequest) WriteResponse

func (o *FaveDeleteCollectionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveDeleteCollectionForbidden

type FaveDeleteCollectionForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveDeleteCollectionForbidden Forbidden

swagger:response faveDeleteCollectionForbidden

func NewFaveDeleteCollectionForbidden

func NewFaveDeleteCollectionForbidden() *FaveDeleteCollectionForbidden

NewFaveDeleteCollectionForbidden creates FaveDeleteCollectionForbidden with default headers values

func (*FaveDeleteCollectionForbidden) SetPayload

func (o *FaveDeleteCollectionForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the fave delete collection forbidden response

func (*FaveDeleteCollectionForbidden) WithPayload

WithPayload adds the payload to the fave delete collection forbidden response

func (*FaveDeleteCollectionForbidden) WriteResponse

func (o *FaveDeleteCollectionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveDeleteCollectionHandler

type FaveDeleteCollectionHandler interface {
	Handle(FaveDeleteCollectionParams) middleware.Responder
}

FaveDeleteCollectionHandler interface for that can handle valid fave delete collection params

type FaveDeleteCollectionHandlerFunc

type FaveDeleteCollectionHandlerFunc func(FaveDeleteCollectionParams) middleware.Responder

FaveDeleteCollectionHandlerFunc turns a function with the right signature into a fave delete collection handler

func (FaveDeleteCollectionHandlerFunc) Handle

Handle executing the request and returning a response

type FaveDeleteCollectionInternalServerError

type FaveDeleteCollectionInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveDeleteCollectionInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

swagger:response faveDeleteCollectionInternalServerError

func NewFaveDeleteCollectionInternalServerError

func NewFaveDeleteCollectionInternalServerError() *FaveDeleteCollectionInternalServerError

NewFaveDeleteCollectionInternalServerError creates FaveDeleteCollectionInternalServerError with default headers values

func (*FaveDeleteCollectionInternalServerError) SetPayload

SetPayload sets the payload to the fave delete collection internal server error response

func (*FaveDeleteCollectionInternalServerError) WithPayload

WithPayload adds the payload to the fave delete collection internal server error response

func (*FaveDeleteCollectionInternalServerError) WriteResponse

WriteResponse to the client

type FaveDeleteCollectionOK

type FaveDeleteCollectionOK struct {

	/*
	  In: Body
	*/
	Payload *models.OKResponse `json:"body,omitempty"`
}

FaveDeleteCollectionOK collection removed

swagger:response faveDeleteCollectionOK

func NewFaveDeleteCollectionOK

func NewFaveDeleteCollectionOK() *FaveDeleteCollectionOK

NewFaveDeleteCollectionOK creates FaveDeleteCollectionOK with default headers values

func (*FaveDeleteCollectionOK) SetPayload

func (o *FaveDeleteCollectionOK) SetPayload(payload *models.OKResponse)

SetPayload sets the payload to the fave delete collection o k response

func (*FaveDeleteCollectionOK) WithPayload

WithPayload adds the payload to the fave delete collection o k response

func (*FaveDeleteCollectionOK) WriteResponse

func (o *FaveDeleteCollectionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveDeleteCollectionParams

type FaveDeleteCollectionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Collection name
	  Required: true
	  In: path
	*/
	Collection string
}

FaveDeleteCollectionParams contains all the bound params for the fave delete collection operation typically these are obtained from a http.Request

swagger:parameters fave.deleteCollection

func NewFaveDeleteCollectionParams

func NewFaveDeleteCollectionParams() FaveDeleteCollectionParams

NewFaveDeleteCollectionParams creates a new FaveDeleteCollectionParams object

There are no default values defined in the spec.

func (*FaveDeleteCollectionParams) BindRequest

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 NewFaveDeleteCollectionParams() beforehand.

type FaveDeleteCollectionURL

type FaveDeleteCollectionURL struct {
	Collection string
	// contains filtered or unexported fields
}

FaveDeleteCollectionURL generates an URL for the fave delete collection operation

func (*FaveDeleteCollectionURL) Build

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

Build a url path and query string

func (*FaveDeleteCollectionURL) BuildFull

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

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

func (*FaveDeleteCollectionURL) Must

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

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

func (*FaveDeleteCollectionURL) SetBasePath

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

func (o *FaveDeleteCollectionURL) String() string

String returns the string representation of the path with query string

func (*FaveDeleteCollectionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FaveDeleteCollectionURL) 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 FaveDeleteCollectionUnauthorized

type FaveDeleteCollectionUnauthorized struct {
}

FaveDeleteCollectionUnauthorized Unauthorized or invalid credentials.

swagger:response faveDeleteCollectionUnauthorized

func NewFaveDeleteCollectionUnauthorized

func NewFaveDeleteCollectionUnauthorized() *FaveDeleteCollectionUnauthorized

NewFaveDeleteCollectionUnauthorized creates FaveDeleteCollectionUnauthorized with default headers values

func (*FaveDeleteCollectionUnauthorized) WriteResponse

func (o *FaveDeleteCollectionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveDeleteCollectionUnprocessableEntity

type FaveDeleteCollectionUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveDeleteCollectionUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous.

swagger:response faveDeleteCollectionUnprocessableEntity

func NewFaveDeleteCollectionUnprocessableEntity

func NewFaveDeleteCollectionUnprocessableEntity() *FaveDeleteCollectionUnprocessableEntity

NewFaveDeleteCollectionUnprocessableEntity creates FaveDeleteCollectionUnprocessableEntity with default headers values

func (*FaveDeleteCollectionUnprocessableEntity) SetPayload

SetPayload sets the payload to the fave delete collection unprocessable entity response

func (*FaveDeleteCollectionUnprocessableEntity) WithPayload

WithPayload adds the payload to the fave delete collection unprocessable entity response

func (*FaveDeleteCollectionUnprocessableEntity) WriteResponse

WriteResponse to the client

type FaveGetCollections

type FaveGetCollections struct {
	Context *middleware.Context
	Handler FaveGetCollectionsHandler
}
FaveGetCollections swagger:route GET /collections faveGetCollections

Get all collections.

func NewFaveGetCollections

func NewFaveGetCollections(ctx *middleware.Context, handler FaveGetCollectionsHandler) *FaveGetCollections

NewFaveGetCollections creates a new http.Handler for the fave get collections operation

func (*FaveGetCollections) ServeHTTP

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

type FaveGetCollectionsBadRequest

type FaveGetCollectionsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetCollectionsBadRequest Malformed request.

swagger:response faveGetCollectionsBadRequest

func NewFaveGetCollectionsBadRequest

func NewFaveGetCollectionsBadRequest() *FaveGetCollectionsBadRequest

NewFaveGetCollectionsBadRequest creates FaveGetCollectionsBadRequest with default headers values

func (*FaveGetCollectionsBadRequest) SetPayload

func (o *FaveGetCollectionsBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the fave get collections bad request response

func (*FaveGetCollectionsBadRequest) WithPayload

WithPayload adds the payload to the fave get collections bad request response

func (*FaveGetCollectionsBadRequest) WriteResponse

func (o *FaveGetCollectionsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveGetCollectionsForbidden

type FaveGetCollectionsForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetCollectionsForbidden Forbidden

swagger:response faveGetCollectionsForbidden

func NewFaveGetCollectionsForbidden

func NewFaveGetCollectionsForbidden() *FaveGetCollectionsForbidden

NewFaveGetCollectionsForbidden creates FaveGetCollectionsForbidden with default headers values

func (*FaveGetCollectionsForbidden) SetPayload

func (o *FaveGetCollectionsForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the fave get collections forbidden response

func (*FaveGetCollectionsForbidden) WithPayload

WithPayload adds the payload to the fave get collections forbidden response

func (*FaveGetCollectionsForbidden) WriteResponse

func (o *FaveGetCollectionsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveGetCollectionsHandler

type FaveGetCollectionsHandler interface {
	Handle(FaveGetCollectionsParams) middleware.Responder
}

FaveGetCollectionsHandler interface for that can handle valid fave get collections params

type FaveGetCollectionsHandlerFunc

type FaveGetCollectionsHandlerFunc func(FaveGetCollectionsParams) middleware.Responder

FaveGetCollectionsHandlerFunc turns a function with the right signature into a fave get collections handler

func (FaveGetCollectionsHandlerFunc) Handle

Handle executing the request and returning a response

type FaveGetCollectionsInternalServerError

type FaveGetCollectionsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetCollectionsInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

swagger:response faveGetCollectionsInternalServerError

func NewFaveGetCollectionsInternalServerError

func NewFaveGetCollectionsInternalServerError() *FaveGetCollectionsInternalServerError

NewFaveGetCollectionsInternalServerError creates FaveGetCollectionsInternalServerError with default headers values

func (*FaveGetCollectionsInternalServerError) SetPayload

SetPayload sets the payload to the fave get collections internal server error response

func (*FaveGetCollectionsInternalServerError) WithPayload

WithPayload adds the payload to the fave get collections internal server error response

func (*FaveGetCollectionsInternalServerError) WriteResponse

WriteResponse to the client

type FaveGetCollectionsOK

type FaveGetCollectionsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Collection `json:"body,omitempty"`
}

FaveGetCollectionsOK All collections

swagger:response faveGetCollectionsOK

func NewFaveGetCollectionsOK

func NewFaveGetCollectionsOK() *FaveGetCollectionsOK

NewFaveGetCollectionsOK creates FaveGetCollectionsOK with default headers values

func (*FaveGetCollectionsOK) SetPayload

func (o *FaveGetCollectionsOK) SetPayload(payload []*models.Collection)

SetPayload sets the payload to the fave get collections o k response

func (*FaveGetCollectionsOK) WithPayload

func (o *FaveGetCollectionsOK) WithPayload(payload []*models.Collection) *FaveGetCollectionsOK

WithPayload adds the payload to the fave get collections o k response

func (*FaveGetCollectionsOK) WriteResponse

func (o *FaveGetCollectionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveGetCollectionsParams

type FaveGetCollectionsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

FaveGetCollectionsParams contains all the bound params for the fave get collections operation typically these are obtained from a http.Request

swagger:parameters fave.getCollections

func NewFaveGetCollectionsParams

func NewFaveGetCollectionsParams() FaveGetCollectionsParams

NewFaveGetCollectionsParams creates a new FaveGetCollectionsParams object

There are no default values defined in the spec.

func (*FaveGetCollectionsParams) BindRequest

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 NewFaveGetCollectionsParams() beforehand.

type FaveGetCollectionsURL

type FaveGetCollectionsURL struct {
	// contains filtered or unexported fields
}

FaveGetCollectionsURL generates an URL for the fave get collections operation

func (*FaveGetCollectionsURL) Build

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

Build a url path and query string

func (*FaveGetCollectionsURL) BuildFull

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

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

func (*FaveGetCollectionsURL) Must

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

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

func (*FaveGetCollectionsURL) SetBasePath

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

func (o *FaveGetCollectionsURL) String() string

String returns the string representation of the path with query string

func (*FaveGetCollectionsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FaveGetCollectionsURL) WithBasePath

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

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 FaveGetCollectionsUnauthorized

type FaveGetCollectionsUnauthorized struct {
}

FaveGetCollectionsUnauthorized Unauthorized or invalid credentials.

swagger:response faveGetCollectionsUnauthorized

func NewFaveGetCollectionsUnauthorized

func NewFaveGetCollectionsUnauthorized() *FaveGetCollectionsUnauthorized

NewFaveGetCollectionsUnauthorized creates FaveGetCollectionsUnauthorized with default headers values

func (*FaveGetCollectionsUnauthorized) WriteResponse

func (o *FaveGetCollectionsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveGetCollectionsUnprocessableEntity

type FaveGetCollectionsUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetCollectionsUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous.

swagger:response faveGetCollectionsUnprocessableEntity

func NewFaveGetCollectionsUnprocessableEntity

func NewFaveGetCollectionsUnprocessableEntity() *FaveGetCollectionsUnprocessableEntity

NewFaveGetCollectionsUnprocessableEntity creates FaveGetCollectionsUnprocessableEntity with default headers values

func (*FaveGetCollectionsUnprocessableEntity) SetPayload

SetPayload sets the payload to the fave get collections unprocessable entity response

func (*FaveGetCollectionsUnprocessableEntity) WithPayload

WithPayload adds the payload to the fave get collections unprocessable entity response

func (*FaveGetCollectionsUnprocessableEntity) WriteResponse

WriteResponse to the client

type FaveGetDocuments

type FaveGetDocuments struct {
	Context *middleware.Context
	Handler FaveGetDocumentsHandler
}
FaveGetDocuments swagger:route GET /documents faveGetDocuments

Retrieve a document based on query parameters

func NewFaveGetDocuments

func NewFaveGetDocuments(ctx *middleware.Context, handler FaveGetDocumentsHandler) *FaveGetDocuments

NewFaveGetDocuments creates a new http.Handler for the fave get documents operation

func (*FaveGetDocuments) ServeHTTP

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

type FaveGetDocumentsBadRequest

type FaveGetDocumentsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetDocumentsBadRequest Malformed request.

swagger:response faveGetDocumentsBadRequest

func NewFaveGetDocumentsBadRequest

func NewFaveGetDocumentsBadRequest() *FaveGetDocumentsBadRequest

NewFaveGetDocumentsBadRequest creates FaveGetDocumentsBadRequest with default headers values

func (*FaveGetDocumentsBadRequest) SetPayload

func (o *FaveGetDocumentsBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the fave get documents bad request response

func (*FaveGetDocumentsBadRequest) WithPayload

WithPayload adds the payload to the fave get documents bad request response

func (*FaveGetDocumentsBadRequest) WriteResponse

func (o *FaveGetDocumentsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveGetDocumentsHandler

type FaveGetDocumentsHandler interface {
	Handle(FaveGetDocumentsParams) middleware.Responder
}

FaveGetDocumentsHandler interface for that can handle valid fave get documents params

type FaveGetDocumentsHandlerFunc

type FaveGetDocumentsHandlerFunc func(FaveGetDocumentsParams) middleware.Responder

FaveGetDocumentsHandlerFunc turns a function with the right signature into a fave get documents handler

func (FaveGetDocumentsHandlerFunc) Handle

Handle executing the request and returning a response

type FaveGetDocumentsNotFound

type FaveGetDocumentsNotFound struct {
}

FaveGetDocumentsNotFound Document not found

swagger:response faveGetDocumentsNotFound

func NewFaveGetDocumentsNotFound

func NewFaveGetDocumentsNotFound() *FaveGetDocumentsNotFound

NewFaveGetDocumentsNotFound creates FaveGetDocumentsNotFound with default headers values

func (*FaveGetDocumentsNotFound) WriteResponse

func (o *FaveGetDocumentsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveGetDocumentsOK

type FaveGetDocumentsOK struct {

	/*
	  In: Body
	*/
	Payload *models.Document `json:"body,omitempty"`
}

FaveGetDocumentsOK Successful response

swagger:response faveGetDocumentsOK

func NewFaveGetDocumentsOK

func NewFaveGetDocumentsOK() *FaveGetDocumentsOK

NewFaveGetDocumentsOK creates FaveGetDocumentsOK with default headers values

func (*FaveGetDocumentsOK) SetPayload

func (o *FaveGetDocumentsOK) SetPayload(payload *models.Document)

SetPayload sets the payload to the fave get documents o k response

func (*FaveGetDocumentsOK) WithPayload

func (o *FaveGetDocumentsOK) WithPayload(payload *models.Document) *FaveGetDocumentsOK

WithPayload adds the payload to the fave get documents o k response

func (*FaveGetDocumentsOK) WriteResponse

func (o *FaveGetDocumentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveGetDocumentsParams

type FaveGetDocumentsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The collection to use for this query
	  Required: true
	  In: query
	*/
	Collection string
	/*The property to filter the document by
	  Required: true
	  In: query
	*/
	Property string
	/*The value of the property to filter the document by
	  Required: true
	  In: query
	*/
	Value string
}

FaveGetDocumentsParams contains all the bound params for the fave get documents operation typically these are obtained from a http.Request

swagger:parameters fave.getDocuments

func NewFaveGetDocumentsParams

func NewFaveGetDocumentsParams() FaveGetDocumentsParams

NewFaveGetDocumentsParams creates a new FaveGetDocumentsParams object

There are no default values defined in the spec.

func (*FaveGetDocumentsParams) BindRequest

func (o *FaveGetDocumentsParams) 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 NewFaveGetDocumentsParams() beforehand.

type FaveGetDocumentsURL

type FaveGetDocumentsURL struct {
	Collection string
	Property   string
	Value      string
	// contains filtered or unexported fields
}

FaveGetDocumentsURL generates an URL for the fave get documents operation

func (*FaveGetDocumentsURL) Build

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

Build a url path and query string

func (*FaveGetDocumentsURL) BuildFull

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

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

func (*FaveGetDocumentsURL) Must

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

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

func (*FaveGetDocumentsURL) SetBasePath

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

func (o *FaveGetDocumentsURL) String() string

String returns the string representation of the path with query string

func (*FaveGetDocumentsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FaveGetDocumentsURL) WithBasePath

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

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 FaveGetNearestDocuments

type FaveGetNearestDocuments struct {
	Context *middleware.Context
	Handler FaveGetNearestDocumentsHandler
}
FaveGetNearestDocuments swagger:route POST /nearest-documents faveGetNearestDocuments

Get nearest documents for a collection.

func NewFaveGetNearestDocuments

func NewFaveGetNearestDocuments(ctx *middleware.Context, handler FaveGetNearestDocumentsHandler) *FaveGetNearestDocuments

NewFaveGetNearestDocuments creates a new http.Handler for the fave get nearest documents operation

func (*FaveGetNearestDocuments) ServeHTTP

type FaveGetNearestDocumentsBadRequest

type FaveGetNearestDocumentsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetNearestDocumentsBadRequest Malformed request.

swagger:response faveGetNearestDocumentsBadRequest

func NewFaveGetNearestDocumentsBadRequest

func NewFaveGetNearestDocumentsBadRequest() *FaveGetNearestDocumentsBadRequest

NewFaveGetNearestDocumentsBadRequest creates FaveGetNearestDocumentsBadRequest with default headers values

func (*FaveGetNearestDocumentsBadRequest) SetPayload

func (o *FaveGetNearestDocumentsBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the fave get nearest documents bad request response

func (*FaveGetNearestDocumentsBadRequest) WithPayload

WithPayload adds the payload to the fave get nearest documents bad request response

func (*FaveGetNearestDocumentsBadRequest) WriteResponse

func (o *FaveGetNearestDocumentsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveGetNearestDocumentsByVector added in v0.1.5

type FaveGetNearestDocumentsByVector struct {
	Context *middleware.Context
	Handler FaveGetNearestDocumentsByVectorHandler
}
FaveGetNearestDocumentsByVector swagger:route POST /nearest-documents-by-vector faveGetNearestDocumentsByVector

Get nearest documents for a collection.

func NewFaveGetNearestDocumentsByVector added in v0.1.5

func NewFaveGetNearestDocumentsByVector(ctx *middleware.Context, handler FaveGetNearestDocumentsByVectorHandler) *FaveGetNearestDocumentsByVector

NewFaveGetNearestDocumentsByVector creates a new http.Handler for the fave get nearest documents by vector operation

func (*FaveGetNearestDocumentsByVector) ServeHTTP added in v0.1.5

type FaveGetNearestDocumentsByVectorBadRequest added in v0.1.5

type FaveGetNearestDocumentsByVectorBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetNearestDocumentsByVectorBadRequest Malformed request.

swagger:response faveGetNearestDocumentsByVectorBadRequest

func NewFaveGetNearestDocumentsByVectorBadRequest added in v0.1.5

func NewFaveGetNearestDocumentsByVectorBadRequest() *FaveGetNearestDocumentsByVectorBadRequest

NewFaveGetNearestDocumentsByVectorBadRequest creates FaveGetNearestDocumentsByVectorBadRequest with default headers values

func (*FaveGetNearestDocumentsByVectorBadRequest) SetPayload added in v0.1.5

SetPayload sets the payload to the fave get nearest documents by vector bad request response

func (*FaveGetNearestDocumentsByVectorBadRequest) WithPayload added in v0.1.5

WithPayload adds the payload to the fave get nearest documents by vector bad request response

func (*FaveGetNearestDocumentsByVectorBadRequest) WriteResponse added in v0.1.5

WriteResponse to the client

type FaveGetNearestDocumentsByVectorForbidden added in v0.1.5

type FaveGetNearestDocumentsByVectorForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetNearestDocumentsByVectorForbidden Forbidden

swagger:response faveGetNearestDocumentsByVectorForbidden

func NewFaveGetNearestDocumentsByVectorForbidden added in v0.1.5

func NewFaveGetNearestDocumentsByVectorForbidden() *FaveGetNearestDocumentsByVectorForbidden

NewFaveGetNearestDocumentsByVectorForbidden creates FaveGetNearestDocumentsByVectorForbidden with default headers values

func (*FaveGetNearestDocumentsByVectorForbidden) SetPayload added in v0.1.5

SetPayload sets the payload to the fave get nearest documents by vector forbidden response

func (*FaveGetNearestDocumentsByVectorForbidden) WithPayload added in v0.1.5

WithPayload adds the payload to the fave get nearest documents by vector forbidden response

func (*FaveGetNearestDocumentsByVectorForbidden) WriteResponse added in v0.1.5

WriteResponse to the client

type FaveGetNearestDocumentsByVectorHandler added in v0.1.5

type FaveGetNearestDocumentsByVectorHandler interface {
	Handle(FaveGetNearestDocumentsByVectorParams) middleware.Responder
}

FaveGetNearestDocumentsByVectorHandler interface for that can handle valid fave get nearest documents by vector params

type FaveGetNearestDocumentsByVectorHandlerFunc added in v0.1.5

type FaveGetNearestDocumentsByVectorHandlerFunc func(FaveGetNearestDocumentsByVectorParams) middleware.Responder

FaveGetNearestDocumentsByVectorHandlerFunc turns a function with the right signature into a fave get nearest documents by vector handler

func (FaveGetNearestDocumentsByVectorHandlerFunc) Handle added in v0.1.5

Handle executing the request and returning a response

type FaveGetNearestDocumentsByVectorInternalServerError added in v0.1.5

type FaveGetNearestDocumentsByVectorInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetNearestDocumentsByVectorInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

swagger:response faveGetNearestDocumentsByVectorInternalServerError

func NewFaveGetNearestDocumentsByVectorInternalServerError added in v0.1.5

func NewFaveGetNearestDocumentsByVectorInternalServerError() *FaveGetNearestDocumentsByVectorInternalServerError

NewFaveGetNearestDocumentsByVectorInternalServerError creates FaveGetNearestDocumentsByVectorInternalServerError with default headers values

func (*FaveGetNearestDocumentsByVectorInternalServerError) SetPayload added in v0.1.5

SetPayload sets the payload to the fave get nearest documents by vector internal server error response

func (*FaveGetNearestDocumentsByVectorInternalServerError) WithPayload added in v0.1.5

WithPayload adds the payload to the fave get nearest documents by vector internal server error response

func (*FaveGetNearestDocumentsByVectorInternalServerError) WriteResponse added in v0.1.5

WriteResponse to the client

type FaveGetNearestDocumentsByVectorOK added in v0.1.5

type FaveGetNearestDocumentsByVectorOK struct {

	/*
	  In: Body
	*/
	Payload *models.NearestDocumentsResponse `json:"body,omitempty"`
}

FaveGetNearestDocumentsByVectorOK Successful response

swagger:response faveGetNearestDocumentsByVectorOK

func NewFaveGetNearestDocumentsByVectorOK added in v0.1.5

func NewFaveGetNearestDocumentsByVectorOK() *FaveGetNearestDocumentsByVectorOK

NewFaveGetNearestDocumentsByVectorOK creates FaveGetNearestDocumentsByVectorOK with default headers values

func (*FaveGetNearestDocumentsByVectorOK) SetPayload added in v0.1.5

SetPayload sets the payload to the fave get nearest documents by vector o k response

func (*FaveGetNearestDocumentsByVectorOK) WithPayload added in v0.1.5

WithPayload adds the payload to the fave get nearest documents by vector o k response

func (*FaveGetNearestDocumentsByVectorOK) WriteResponse added in v0.1.5

func (o *FaveGetNearestDocumentsByVectorOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveGetNearestDocumentsByVectorParams added in v0.1.5

type FaveGetNearestDocumentsByVectorParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.NearestDocumentsByVectorRequest
}

FaveGetNearestDocumentsByVectorParams contains all the bound params for the fave get nearest documents by vector operation typically these are obtained from a http.Request

swagger:parameters fave.getNearestDocumentsByVector

func NewFaveGetNearestDocumentsByVectorParams added in v0.1.5

func NewFaveGetNearestDocumentsByVectorParams() FaveGetNearestDocumentsByVectorParams

NewFaveGetNearestDocumentsByVectorParams creates a new FaveGetNearestDocumentsByVectorParams object

There are no default values defined in the spec.

func (*FaveGetNearestDocumentsByVectorParams) BindRequest added in v0.1.5

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 NewFaveGetNearestDocumentsByVectorParams() beforehand.

type FaveGetNearestDocumentsByVectorURL added in v0.1.5

type FaveGetNearestDocumentsByVectorURL struct {
	// contains filtered or unexported fields
}

FaveGetNearestDocumentsByVectorURL generates an URL for the fave get nearest documents by vector operation

func (*FaveGetNearestDocumentsByVectorURL) Build added in v0.1.5

Build a url path and query string

func (*FaveGetNearestDocumentsByVectorURL) BuildFull added in v0.1.5

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

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

func (*FaveGetNearestDocumentsByVectorURL) Must added in v0.1.5

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

func (*FaveGetNearestDocumentsByVectorURL) SetBasePath added in v0.1.5

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

String returns the string representation of the path with query string

func (*FaveGetNearestDocumentsByVectorURL) StringFull added in v0.1.5

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

StringFull returns the string representation of a complete url

func (*FaveGetNearestDocumentsByVectorURL) WithBasePath added in v0.1.5

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 FaveGetNearestDocumentsByVectorUnauthorized added in v0.1.5

type FaveGetNearestDocumentsByVectorUnauthorized struct {
}

FaveGetNearestDocumentsByVectorUnauthorized Unauthorized or invalid credentials.

swagger:response faveGetNearestDocumentsByVectorUnauthorized

func NewFaveGetNearestDocumentsByVectorUnauthorized added in v0.1.5

func NewFaveGetNearestDocumentsByVectorUnauthorized() *FaveGetNearestDocumentsByVectorUnauthorized

NewFaveGetNearestDocumentsByVectorUnauthorized creates FaveGetNearestDocumentsByVectorUnauthorized with default headers values

func (*FaveGetNearestDocumentsByVectorUnauthorized) WriteResponse added in v0.1.5

WriteResponse to the client

type FaveGetNearestDocumentsByVectorUnprocessableEntity added in v0.1.5

type FaveGetNearestDocumentsByVectorUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetNearestDocumentsByVectorUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous.

swagger:response faveGetNearestDocumentsByVectorUnprocessableEntity

func NewFaveGetNearestDocumentsByVectorUnprocessableEntity added in v0.1.5

func NewFaveGetNearestDocumentsByVectorUnprocessableEntity() *FaveGetNearestDocumentsByVectorUnprocessableEntity

NewFaveGetNearestDocumentsByVectorUnprocessableEntity creates FaveGetNearestDocumentsByVectorUnprocessableEntity with default headers values

func (*FaveGetNearestDocumentsByVectorUnprocessableEntity) SetPayload added in v0.1.5

SetPayload sets the payload to the fave get nearest documents by vector unprocessable entity response

func (*FaveGetNearestDocumentsByVectorUnprocessableEntity) WithPayload added in v0.1.5

WithPayload adds the payload to the fave get nearest documents by vector unprocessable entity response

func (*FaveGetNearestDocumentsByVectorUnprocessableEntity) WriteResponse added in v0.1.5

WriteResponse to the client

type FaveGetNearestDocumentsForbidden

type FaveGetNearestDocumentsForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetNearestDocumentsForbidden Forbidden

swagger:response faveGetNearestDocumentsForbidden

func NewFaveGetNearestDocumentsForbidden

func NewFaveGetNearestDocumentsForbidden() *FaveGetNearestDocumentsForbidden

NewFaveGetNearestDocumentsForbidden creates FaveGetNearestDocumentsForbidden with default headers values

func (*FaveGetNearestDocumentsForbidden) SetPayload

func (o *FaveGetNearestDocumentsForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the fave get nearest documents forbidden response

func (*FaveGetNearestDocumentsForbidden) WithPayload

WithPayload adds the payload to the fave get nearest documents forbidden response

func (*FaveGetNearestDocumentsForbidden) WriteResponse

func (o *FaveGetNearestDocumentsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveGetNearestDocumentsHandler

type FaveGetNearestDocumentsHandler interface {
	Handle(FaveGetNearestDocumentsParams) middleware.Responder
}

FaveGetNearestDocumentsHandler interface for that can handle valid fave get nearest documents params

type FaveGetNearestDocumentsHandlerFunc

type FaveGetNearestDocumentsHandlerFunc func(FaveGetNearestDocumentsParams) middleware.Responder

FaveGetNearestDocumentsHandlerFunc turns a function with the right signature into a fave get nearest documents handler

func (FaveGetNearestDocumentsHandlerFunc) Handle

Handle executing the request and returning a response

type FaveGetNearestDocumentsInternalServerError

type FaveGetNearestDocumentsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetNearestDocumentsInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

swagger:response faveGetNearestDocumentsInternalServerError

func NewFaveGetNearestDocumentsInternalServerError

func NewFaveGetNearestDocumentsInternalServerError() *FaveGetNearestDocumentsInternalServerError

NewFaveGetNearestDocumentsInternalServerError creates FaveGetNearestDocumentsInternalServerError with default headers values

func (*FaveGetNearestDocumentsInternalServerError) SetPayload

SetPayload sets the payload to the fave get nearest documents internal server error response

func (*FaveGetNearestDocumentsInternalServerError) WithPayload

WithPayload adds the payload to the fave get nearest documents internal server error response

func (*FaveGetNearestDocumentsInternalServerError) WriteResponse

WriteResponse to the client

type FaveGetNearestDocumentsOK

type FaveGetNearestDocumentsOK struct {

	/*
	  In: Body
	*/
	Payload *models.NearestDocumentsResponse `json:"body,omitempty"`
}

FaveGetNearestDocumentsOK Successful response

swagger:response faveGetNearestDocumentsOK

func NewFaveGetNearestDocumentsOK

func NewFaveGetNearestDocumentsOK() *FaveGetNearestDocumentsOK

NewFaveGetNearestDocumentsOK creates FaveGetNearestDocumentsOK with default headers values

func (*FaveGetNearestDocumentsOK) SetPayload

SetPayload sets the payload to the fave get nearest documents o k response

func (*FaveGetNearestDocumentsOK) WithPayload

WithPayload adds the payload to the fave get nearest documents o k response

func (*FaveGetNearestDocumentsOK) WriteResponse

func (o *FaveGetNearestDocumentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveGetNearestDocumentsParams

type FaveGetNearestDocumentsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.NearestDocumentsRequest
}

FaveGetNearestDocumentsParams contains all the bound params for the fave get nearest documents operation typically these are obtained from a http.Request

swagger:parameters fave.getNearestDocuments

func NewFaveGetNearestDocumentsParams

func NewFaveGetNearestDocumentsParams() FaveGetNearestDocumentsParams

NewFaveGetNearestDocumentsParams creates a new FaveGetNearestDocumentsParams object

There are no default values defined in the spec.

func (*FaveGetNearestDocumentsParams) BindRequest

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 NewFaveGetNearestDocumentsParams() beforehand.

type FaveGetNearestDocumentsURL

type FaveGetNearestDocumentsURL struct {
	// contains filtered or unexported fields
}

FaveGetNearestDocumentsURL generates an URL for the fave get nearest documents operation

func (*FaveGetNearestDocumentsURL) Build

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

Build a url path and query string

func (*FaveGetNearestDocumentsURL) BuildFull

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

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

func (*FaveGetNearestDocumentsURL) Must

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

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

func (*FaveGetNearestDocumentsURL) SetBasePath

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

func (o *FaveGetNearestDocumentsURL) String() string

String returns the string representation of the path with query string

func (*FaveGetNearestDocumentsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FaveGetNearestDocumentsURL) 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 FaveGetNearestDocumentsUnauthorized

type FaveGetNearestDocumentsUnauthorized struct {
}

FaveGetNearestDocumentsUnauthorized Unauthorized or invalid credentials.

swagger:response faveGetNearestDocumentsUnauthorized

func NewFaveGetNearestDocumentsUnauthorized

func NewFaveGetNearestDocumentsUnauthorized() *FaveGetNearestDocumentsUnauthorized

NewFaveGetNearestDocumentsUnauthorized creates FaveGetNearestDocumentsUnauthorized with default headers values

func (*FaveGetNearestDocumentsUnauthorized) WriteResponse

WriteResponse to the client

type FaveGetNearestDocumentsUnprocessableEntity

type FaveGetNearestDocumentsUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

FaveGetNearestDocumentsUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous.

swagger:response faveGetNearestDocumentsUnprocessableEntity

func NewFaveGetNearestDocumentsUnprocessableEntity

func NewFaveGetNearestDocumentsUnprocessableEntity() *FaveGetNearestDocumentsUnprocessableEntity

NewFaveGetNearestDocumentsUnprocessableEntity creates FaveGetNearestDocumentsUnprocessableEntity with default headers values

func (*FaveGetNearestDocumentsUnprocessableEntity) SetPayload

SetPayload sets the payload to the fave get nearest documents unprocessable entity response

func (*FaveGetNearestDocumentsUnprocessableEntity) WithPayload

WithPayload adds the payload to the fave get nearest documents unprocessable entity response

func (*FaveGetNearestDocumentsUnprocessableEntity) WriteResponse

WriteResponse to the client

type FaveHello

type FaveHello struct {
	Context *middleware.Context
	Handler FaveHelloHandler
}
FaveHello swagger:route GET /hello faveHello

hello. Discover the REST API

func NewFaveHello

func NewFaveHello(ctx *middleware.Context, handler FaveHelloHandler) *FaveHello

NewFaveHello creates a new http.Handler for the fave hello operation

func (*FaveHello) ServeHTTP

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

type FaveHelloHandler

type FaveHelloHandler interface {
	Handle(FaveHelloParams) middleware.Responder
}

FaveHelloHandler interface for that can handle valid fave hello params

type FaveHelloHandlerFunc

type FaveHelloHandlerFunc func(FaveHelloParams) middleware.Responder

FaveHelloHandlerFunc turns a function with the right signature into a fave hello handler

func (FaveHelloHandlerFunc) Handle

Handle executing the request and returning a response

type FaveHelloOK

type FaveHelloOK struct {
}

FaveHelloOK fave is alive and says hello

swagger:response faveHelloOK

func NewFaveHelloOK

func NewFaveHelloOK() *FaveHelloOK

NewFaveHelloOK creates FaveHelloOK with default headers values

func (*FaveHelloOK) WriteResponse

func (o *FaveHelloOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveHelloParams

type FaveHelloParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

FaveHelloParams contains all the bound params for the fave hello operation typically these are obtained from a http.Request

swagger:parameters fave.hello

func NewFaveHelloParams

func NewFaveHelloParams() FaveHelloParams

NewFaveHelloParams creates a new FaveHelloParams object

There are no default values defined in the spec.

func (*FaveHelloParams) BindRequest

func (o *FaveHelloParams) 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 NewFaveHelloParams() beforehand.

type FaveHelloURL

type FaveHelloURL struct {
	// contains filtered or unexported fields
}

FaveHelloURL generates an URL for the fave hello operation

func (*FaveHelloURL) Build

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

Build a url path and query string

func (*FaveHelloURL) BuildFull

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

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

func (*FaveHelloURL) Must

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

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

func (*FaveHelloURL) SetBasePath

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

func (o *FaveHelloURL) String() string

String returns the string representation of the path with query string

func (*FaveHelloURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FaveHelloURL) WithBasePath

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

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 FaveRoot

type FaveRoot struct {
	Context *middleware.Context
	Handler FaveRootHandler
}
FaveRoot swagger:route GET / faveRoot

Home. Discover the REST API

func NewFaveRoot

func NewFaveRoot(ctx *middleware.Context, handler FaveRootHandler) *FaveRoot

NewFaveRoot creates a new http.Handler for the fave root operation

func (*FaveRoot) ServeHTTP

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

type FaveRootHandler

type FaveRootHandler interface {
	Handle(FaveRootParams) middleware.Responder
}

FaveRootHandler interface for that can handle valid fave root params

type FaveRootHandlerFunc

type FaveRootHandlerFunc func(FaveRootParams) middleware.Responder

FaveRootHandlerFunc turns a function with the right signature into a fave root handler

func (FaveRootHandlerFunc) Handle

Handle executing the request and returning a response

type FaveRootOK

type FaveRootOK struct {
}

FaveRootOK fave is alive and ready to serve content

swagger:response faveRootOK

func NewFaveRootOK

func NewFaveRootOK() *FaveRootOK

NewFaveRootOK creates FaveRootOK with default headers values

func (*FaveRootOK) WriteResponse

func (o *FaveRootOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FaveRootParams

type FaveRootParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

FaveRootParams contains all the bound params for the fave root operation typically these are obtained from a http.Request

swagger:parameters fave.root

func NewFaveRootParams

func NewFaveRootParams() FaveRootParams

NewFaveRootParams creates a new FaveRootParams object

There are no default values defined in the spec.

func (*FaveRootParams) BindRequest

func (o *FaveRootParams) 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 NewFaveRootParams() beforehand.

type FaveRootURL

type FaveRootURL struct {
	// contains filtered or unexported fields
}

FaveRootURL generates an URL for the fave root operation

func (*FaveRootURL) Build

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

Build a url path and query string

func (*FaveRootURL) BuildFull

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

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

func (*FaveRootURL) Must

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

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

func (*FaveRootURL) SetBasePath

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

func (o *FaveRootURL) String() string

String returns the string representation of the path with query string

func (*FaveRootURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FaveRootURL) WithBasePath

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

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 GetDocuments

type GetDocuments struct {
	Context *middleware.Context
	Handler GetDocumentsHandler
}
GetDocuments swagger:route GET /documents getDocuments

Retrieve a document based on query parameters

func NewGetDocuments

func NewGetDocuments(ctx *middleware.Context, handler GetDocumentsHandler) *GetDocuments

NewGetDocuments creates a new http.Handler for the get documents operation

func (*GetDocuments) ServeHTTP

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

type GetDocumentsBadRequest

type GetDocumentsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetDocumentsBadRequest Malformed request.

swagger:response getDocumentsBadRequest

func NewGetDocumentsBadRequest

func NewGetDocumentsBadRequest() *GetDocumentsBadRequest

NewGetDocumentsBadRequest creates GetDocumentsBadRequest with default headers values

func (*GetDocumentsBadRequest) SetPayload

func (o *GetDocumentsBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get documents bad request response

func (*GetDocumentsBadRequest) WithPayload

WithPayload adds the payload to the get documents bad request response

func (*GetDocumentsBadRequest) WriteResponse

func (o *GetDocumentsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDocumentsHandler

type GetDocumentsHandler interface {
	Handle(GetDocumentsParams) middleware.Responder
}

GetDocumentsHandler interface for that can handle valid get documents params

type GetDocumentsHandlerFunc

type GetDocumentsHandlerFunc func(GetDocumentsParams) middleware.Responder

GetDocumentsHandlerFunc turns a function with the right signature into a get documents handler

func (GetDocumentsHandlerFunc) Handle

Handle executing the request and returning a response

type GetDocumentsNotFound

type GetDocumentsNotFound struct {
}

GetDocumentsNotFound Document not found

swagger:response getDocumentsNotFound

func NewGetDocumentsNotFound

func NewGetDocumentsNotFound() *GetDocumentsNotFound

NewGetDocumentsNotFound creates GetDocumentsNotFound with default headers values

func (*GetDocumentsNotFound) WriteResponse

func (o *GetDocumentsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDocumentsOK

type GetDocumentsOK struct {

	/*
	  In: Body
	*/
	Payload *models.Document `json:"body,omitempty"`
}

GetDocumentsOK Successful response

swagger:response getDocumentsOK

func NewGetDocumentsOK

func NewGetDocumentsOK() *GetDocumentsOK

NewGetDocumentsOK creates GetDocumentsOK with default headers values

func (*GetDocumentsOK) SetPayload

func (o *GetDocumentsOK) SetPayload(payload *models.Document)

SetPayload sets the payload to the get documents o k response

func (*GetDocumentsOK) WithPayload

func (o *GetDocumentsOK) WithPayload(payload *models.Document) *GetDocumentsOK

WithPayload adds the payload to the get documents o k response

func (*GetDocumentsOK) WriteResponse

func (o *GetDocumentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDocumentsParams

type GetDocumentsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The collection to use for this query
	  Required: true
	  In: query
	*/
	Collection string
	/*The property to filter the document by
	  Required: true
	  In: query
	*/
	Property string
	/*The value of the property to filter the document by
	  Required: true
	  In: query
	*/
	Value string
}

GetDocumentsParams contains all the bound params for the get documents operation typically these are obtained from a http.Request

swagger:parameters GetDocuments

func NewGetDocumentsParams

func NewGetDocumentsParams() GetDocumentsParams

NewGetDocumentsParams creates a new GetDocumentsParams object

There are no default values defined in the spec.

func (*GetDocumentsParams) BindRequest

func (o *GetDocumentsParams) 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 NewGetDocumentsParams() beforehand.

type GetDocumentsURL

type GetDocumentsURL struct {
	Collection string
	Property   string
	Value      string
	// contains filtered or unexported fields
}

GetDocumentsURL generates an URL for the get documents operation

func (*GetDocumentsURL) Build

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

Build a url path and query string

func (*GetDocumentsURL) BuildFull

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

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

func (*GetDocumentsURL) Must

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

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

func (*GetDocumentsURL) SetBasePath

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

func (o *GetDocumentsURL) String() string

String returns the string representation of the path with query string

func (*GetDocumentsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetDocumentsURL) WithBasePath

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

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