Documentation
¶
Index ¶
- Constants
- type FaveAPI
- func (o *FaveAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *FaveAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *FaveAPI) Authorizer() runtime.Authorizer
- func (o *FaveAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *FaveAPI) Context() *middleware.Context
- func (o *FaveAPI) DefaultConsumes() string
- func (o *FaveAPI) DefaultProduces() string
- func (o *FaveAPI) Formats() strfmt.Registry
- func (o *FaveAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *FaveAPI) Init()
- func (o *FaveAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *FaveAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *FaveAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *FaveAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *FaveAPI) Serve(builder middleware.Builder) http.Handler
- func (o *FaveAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *FaveAPI) SetDefaultConsumes(mediaType string)
- func (o *FaveAPI) SetDefaultProduces(mediaType string)
- func (o *FaveAPI) SetSpec(spec *loads.Document)
- func (o *FaveAPI) UseRedoc()
- func (o *FaveAPI) UseSwaggerUI()
- func (o *FaveAPI) Validate() error
- type FaveAddDocuments
- type FaveAddDocumentsBadRequest
- type FaveAddDocumentsForbidden
- type FaveAddDocumentsHandler
- type FaveAddDocumentsHandlerFunc
- type FaveAddDocumentsInternalServerError
- func (o *FaveAddDocumentsInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *FaveAddDocumentsInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveAddDocumentsInternalServerError
- func (o *FaveAddDocumentsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveAddDocumentsOK
- type FaveAddDocumentsParams
- type FaveAddDocumentsURL
- func (o *FaveAddDocumentsURL) Build() (*url.URL, error)
- func (o *FaveAddDocumentsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FaveAddDocumentsURL) Must(u *url.URL, err error) *url.URL
- func (o *FaveAddDocumentsURL) SetBasePath(bp string)
- func (o *FaveAddDocumentsURL) String() string
- func (o *FaveAddDocumentsURL) StringFull(scheme, host string) string
- func (o *FaveAddDocumentsURL) WithBasePath(bp string) *FaveAddDocumentsURL
- type FaveAddDocumentsUnauthorized
- type FaveAddDocumentsUnprocessableEntity
- func (o *FaveAddDocumentsUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *FaveAddDocumentsUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveAddDocumentsUnprocessableEntity
- func (o *FaveAddDocumentsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveCreateCollection
- type FaveCreateCollectionBadRequest
- func (o *FaveCreateCollectionBadRequest) SetPayload(payload *models.ErrorResponse)
- func (o *FaveCreateCollectionBadRequest) WithPayload(payload *models.ErrorResponse) *FaveCreateCollectionBadRequest
- func (o *FaveCreateCollectionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveCreateCollectionForbidden
- func (o *FaveCreateCollectionForbidden) SetPayload(payload *models.ErrorResponse)
- func (o *FaveCreateCollectionForbidden) WithPayload(payload *models.ErrorResponse) *FaveCreateCollectionForbidden
- func (o *FaveCreateCollectionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveCreateCollectionHandler
- type FaveCreateCollectionHandlerFunc
- type FaveCreateCollectionInternalServerError
- func (o *FaveCreateCollectionInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *FaveCreateCollectionInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveCreateCollectionInternalServerError
- func (o *FaveCreateCollectionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveCreateCollectionOK
- type FaveCreateCollectionParams
- type FaveCreateCollectionURL
- func (o *FaveCreateCollectionURL) Build() (*url.URL, error)
- func (o *FaveCreateCollectionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FaveCreateCollectionURL) Must(u *url.URL, err error) *url.URL
- func (o *FaveCreateCollectionURL) SetBasePath(bp string)
- func (o *FaveCreateCollectionURL) String() string
- func (o *FaveCreateCollectionURL) StringFull(scheme, host string) string
- func (o *FaveCreateCollectionURL) WithBasePath(bp string) *FaveCreateCollectionURL
- type FaveCreateCollectionUnauthorized
- type FaveCreateCollectionUnprocessableEntity
- func (o *FaveCreateCollectionUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *FaveCreateCollectionUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveCreateCollectionUnprocessableEntity
- func (o *FaveCreateCollectionUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveDeleteCollection
- type FaveDeleteCollectionBadRequest
- func (o *FaveDeleteCollectionBadRequest) SetPayload(payload *models.ErrorResponse)
- func (o *FaveDeleteCollectionBadRequest) WithPayload(payload *models.ErrorResponse) *FaveDeleteCollectionBadRequest
- func (o *FaveDeleteCollectionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveDeleteCollectionForbidden
- func (o *FaveDeleteCollectionForbidden) SetPayload(payload *models.ErrorResponse)
- func (o *FaveDeleteCollectionForbidden) WithPayload(payload *models.ErrorResponse) *FaveDeleteCollectionForbidden
- func (o *FaveDeleteCollectionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveDeleteCollectionHandler
- type FaveDeleteCollectionHandlerFunc
- type FaveDeleteCollectionInternalServerError
- func (o *FaveDeleteCollectionInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *FaveDeleteCollectionInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveDeleteCollectionInternalServerError
- func (o *FaveDeleteCollectionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveDeleteCollectionOK
- type FaveDeleteCollectionParams
- type FaveDeleteCollectionURL
- func (o *FaveDeleteCollectionURL) Build() (*url.URL, error)
- func (o *FaveDeleteCollectionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FaveDeleteCollectionURL) Must(u *url.URL, err error) *url.URL
- func (o *FaveDeleteCollectionURL) SetBasePath(bp string)
- func (o *FaveDeleteCollectionURL) String() string
- func (o *FaveDeleteCollectionURL) StringFull(scheme, host string) string
- func (o *FaveDeleteCollectionURL) WithBasePath(bp string) *FaveDeleteCollectionURL
- type FaveDeleteCollectionUnauthorized
- type FaveDeleteCollectionUnprocessableEntity
- func (o *FaveDeleteCollectionUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *FaveDeleteCollectionUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveDeleteCollectionUnprocessableEntity
- func (o *FaveDeleteCollectionUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetCollections
- type FaveGetCollectionsBadRequest
- type FaveGetCollectionsForbidden
- type FaveGetCollectionsHandler
- type FaveGetCollectionsHandlerFunc
- type FaveGetCollectionsInternalServerError
- func (o *FaveGetCollectionsInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *FaveGetCollectionsInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveGetCollectionsInternalServerError
- func (o *FaveGetCollectionsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetCollectionsOK
- type FaveGetCollectionsParams
- type FaveGetCollectionsURL
- func (o *FaveGetCollectionsURL) Build() (*url.URL, error)
- func (o *FaveGetCollectionsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FaveGetCollectionsURL) Must(u *url.URL, err error) *url.URL
- func (o *FaveGetCollectionsURL) SetBasePath(bp string)
- func (o *FaveGetCollectionsURL) String() string
- func (o *FaveGetCollectionsURL) StringFull(scheme, host string) string
- func (o *FaveGetCollectionsURL) WithBasePath(bp string) *FaveGetCollectionsURL
- type FaveGetCollectionsUnauthorized
- type FaveGetCollectionsUnprocessableEntity
- func (o *FaveGetCollectionsUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *FaveGetCollectionsUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveGetCollectionsUnprocessableEntity
- func (o *FaveGetCollectionsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetDocuments
- type FaveGetDocumentsBadRequest
- type FaveGetDocumentsHandler
- type FaveGetDocumentsHandlerFunc
- type FaveGetDocumentsNotFound
- type FaveGetDocumentsOK
- type FaveGetDocumentsParams
- type FaveGetDocumentsURL
- func (o *FaveGetDocumentsURL) Build() (*url.URL, error)
- func (o *FaveGetDocumentsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FaveGetDocumentsURL) Must(u *url.URL, err error) *url.URL
- func (o *FaveGetDocumentsURL) SetBasePath(bp string)
- func (o *FaveGetDocumentsURL) String() string
- func (o *FaveGetDocumentsURL) StringFull(scheme, host string) string
- func (o *FaveGetDocumentsURL) WithBasePath(bp string) *FaveGetDocumentsURL
- type FaveGetNearestDocuments
- type FaveGetNearestDocumentsBadRequest
- func (o *FaveGetNearestDocumentsBadRequest) SetPayload(payload *models.ErrorResponse)
- func (o *FaveGetNearestDocumentsBadRequest) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsBadRequest
- func (o *FaveGetNearestDocumentsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetNearestDocumentsByVector
- type FaveGetNearestDocumentsByVectorBadRequest
- func (o *FaveGetNearestDocumentsByVectorBadRequest) SetPayload(payload *models.ErrorResponse)
- func (o *FaveGetNearestDocumentsByVectorBadRequest) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsByVectorBadRequest
- func (o *FaveGetNearestDocumentsByVectorBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetNearestDocumentsByVectorForbidden
- func (o *FaveGetNearestDocumentsByVectorForbidden) SetPayload(payload *models.ErrorResponse)
- func (o *FaveGetNearestDocumentsByVectorForbidden) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsByVectorForbidden
- func (o *FaveGetNearestDocumentsByVectorForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetNearestDocumentsByVectorHandler
- type FaveGetNearestDocumentsByVectorHandlerFunc
- type FaveGetNearestDocumentsByVectorInternalServerError
- func (o *FaveGetNearestDocumentsByVectorInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *FaveGetNearestDocumentsByVectorInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsByVectorInternalServerError
- func (o *FaveGetNearestDocumentsByVectorInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetNearestDocumentsByVectorOK
- func (o *FaveGetNearestDocumentsByVectorOK) SetPayload(payload *models.NearestDocumentsResponse)
- func (o *FaveGetNearestDocumentsByVectorOK) WithPayload(payload *models.NearestDocumentsResponse) *FaveGetNearestDocumentsByVectorOK
- func (o *FaveGetNearestDocumentsByVectorOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetNearestDocumentsByVectorParams
- type FaveGetNearestDocumentsByVectorURL
- func (o *FaveGetNearestDocumentsByVectorURL) Build() (*url.URL, error)
- func (o *FaveGetNearestDocumentsByVectorURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FaveGetNearestDocumentsByVectorURL) Must(u *url.URL, err error) *url.URL
- func (o *FaveGetNearestDocumentsByVectorURL) SetBasePath(bp string)
- func (o *FaveGetNearestDocumentsByVectorURL) String() string
- func (o *FaveGetNearestDocumentsByVectorURL) StringFull(scheme, host string) string
- func (o *FaveGetNearestDocumentsByVectorURL) WithBasePath(bp string) *FaveGetNearestDocumentsByVectorURL
- type FaveGetNearestDocumentsByVectorUnauthorized
- type FaveGetNearestDocumentsByVectorUnprocessableEntity
- func (o *FaveGetNearestDocumentsByVectorUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *FaveGetNearestDocumentsByVectorUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsByVectorUnprocessableEntity
- func (o *FaveGetNearestDocumentsByVectorUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetNearestDocumentsForbidden
- func (o *FaveGetNearestDocumentsForbidden) SetPayload(payload *models.ErrorResponse)
- func (o *FaveGetNearestDocumentsForbidden) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsForbidden
- func (o *FaveGetNearestDocumentsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetNearestDocumentsHandler
- type FaveGetNearestDocumentsHandlerFunc
- type FaveGetNearestDocumentsInternalServerError
- func (o *FaveGetNearestDocumentsInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *FaveGetNearestDocumentsInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsInternalServerError
- func (o *FaveGetNearestDocumentsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetNearestDocumentsOK
- func (o *FaveGetNearestDocumentsOK) SetPayload(payload *models.NearestDocumentsResponse)
- func (o *FaveGetNearestDocumentsOK) WithPayload(payload *models.NearestDocumentsResponse) *FaveGetNearestDocumentsOK
- func (o *FaveGetNearestDocumentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveGetNearestDocumentsParams
- type FaveGetNearestDocumentsURL
- func (o *FaveGetNearestDocumentsURL) Build() (*url.URL, error)
- func (o *FaveGetNearestDocumentsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FaveGetNearestDocumentsURL) Must(u *url.URL, err error) *url.URL
- func (o *FaveGetNearestDocumentsURL) SetBasePath(bp string)
- func (o *FaveGetNearestDocumentsURL) String() string
- func (o *FaveGetNearestDocumentsURL) StringFull(scheme, host string) string
- func (o *FaveGetNearestDocumentsURL) WithBasePath(bp string) *FaveGetNearestDocumentsURL
- type FaveGetNearestDocumentsUnauthorized
- type FaveGetNearestDocumentsUnprocessableEntity
- func (o *FaveGetNearestDocumentsUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *FaveGetNearestDocumentsUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsUnprocessableEntity
- func (o *FaveGetNearestDocumentsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FaveHello
- type FaveHelloHandler
- type FaveHelloHandlerFunc
- type FaveHelloOK
- type FaveHelloParams
- type FaveHelloURL
- func (o *FaveHelloURL) Build() (*url.URL, error)
- func (o *FaveHelloURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FaveHelloURL) Must(u *url.URL, err error) *url.URL
- func (o *FaveHelloURL) SetBasePath(bp string)
- func (o *FaveHelloURL) String() string
- func (o *FaveHelloURL) StringFull(scheme, host string) string
- func (o *FaveHelloURL) WithBasePath(bp string) *FaveHelloURL
- type FaveRoot
- type FaveRootHandler
- type FaveRootHandlerFunc
- type FaveRootOK
- type FaveRootParams
- type FaveRootURL
- func (o *FaveRootURL) Build() (*url.URL, error)
- func (o *FaveRootURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FaveRootURL) Must(u *url.URL, err error) *url.URL
- func (o *FaveRootURL) SetBasePath(bp string)
- func (o *FaveRootURL) String() string
- func (o *FaveRootURL) StringFull(scheme, host string) string
- func (o *FaveRootURL) WithBasePath(bp string) *FaveRootURL
- type GetDocuments
- type GetDocumentsBadRequest
- type GetDocumentsHandler
- type GetDocumentsHandlerFunc
- type GetDocumentsNotFound
- type GetDocumentsOK
- type GetDocumentsParams
- type GetDocumentsURL
- func (o *GetDocumentsURL) Build() (*url.URL, error)
- func (o *GetDocumentsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetDocumentsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetDocumentsURL) SetBasePath(bp string)
- func (o *GetDocumentsURL) String() string
- func (o *GetDocumentsURL) StringFull(scheme, host string) string
- func (o *GetDocumentsURL) WithBasePath(bp string) *GetDocumentsURL
Constants ¶
const FaveAddDocumentsBadRequestCode int = 400
FaveAddDocumentsBadRequestCode is the HTTP code returned for type FaveAddDocumentsBadRequest
const FaveAddDocumentsForbiddenCode int = 403
FaveAddDocumentsForbiddenCode is the HTTP code returned for type FaveAddDocumentsForbidden
const FaveAddDocumentsInternalServerErrorCode int = 500
FaveAddDocumentsInternalServerErrorCode is the HTTP code returned for type FaveAddDocumentsInternalServerError
const FaveAddDocumentsOKCode int = 200
FaveAddDocumentsOKCode is the HTTP code returned for type FaveAddDocumentsOK
FaveAddDocumentsUnauthorizedCode is the HTTP code returned for type FaveAddDocumentsUnauthorized
const FaveAddDocumentsUnprocessableEntityCode int = 422
FaveAddDocumentsUnprocessableEntityCode is the HTTP code returned for type FaveAddDocumentsUnprocessableEntity
const FaveCreateCollectionBadRequestCode int = 400
FaveCreateCollectionBadRequestCode is the HTTP code returned for type FaveCreateCollectionBadRequest
const FaveCreateCollectionForbiddenCode int = 403
FaveCreateCollectionForbiddenCode is the HTTP code returned for type FaveCreateCollectionForbidden
const FaveCreateCollectionInternalServerErrorCode int = 500
FaveCreateCollectionInternalServerErrorCode is the HTTP code returned for type FaveCreateCollectionInternalServerError
const FaveCreateCollectionOKCode int = 200
FaveCreateCollectionOKCode is the HTTP code returned for type FaveCreateCollectionOK
FaveCreateCollectionUnauthorizedCode is the HTTP code returned for type FaveCreateCollectionUnauthorized
const FaveCreateCollectionUnprocessableEntityCode int = 422
FaveCreateCollectionUnprocessableEntityCode is the HTTP code returned for type FaveCreateCollectionUnprocessableEntity
const FaveDeleteCollectionBadRequestCode int = 400
FaveDeleteCollectionBadRequestCode is the HTTP code returned for type FaveDeleteCollectionBadRequest
const FaveDeleteCollectionForbiddenCode int = 403
FaveDeleteCollectionForbiddenCode is the HTTP code returned for type FaveDeleteCollectionForbidden
const FaveDeleteCollectionInternalServerErrorCode int = 500
FaveDeleteCollectionInternalServerErrorCode is the HTTP code returned for type FaveDeleteCollectionInternalServerError
const FaveDeleteCollectionOKCode int = 200
FaveDeleteCollectionOKCode is the HTTP code returned for type FaveDeleteCollectionOK
FaveDeleteCollectionUnauthorizedCode is the HTTP code returned for type FaveDeleteCollectionUnauthorized
const FaveDeleteCollectionUnprocessableEntityCode int = 422
FaveDeleteCollectionUnprocessableEntityCode is the HTTP code returned for type FaveDeleteCollectionUnprocessableEntity
const FaveGetCollectionsBadRequestCode int = 400
FaveGetCollectionsBadRequestCode is the HTTP code returned for type FaveGetCollectionsBadRequest
const FaveGetCollectionsForbiddenCode int = 403
FaveGetCollectionsForbiddenCode is the HTTP code returned for type FaveGetCollectionsForbidden
const FaveGetCollectionsInternalServerErrorCode int = 500
FaveGetCollectionsInternalServerErrorCode is the HTTP code returned for type FaveGetCollectionsInternalServerError
const FaveGetCollectionsOKCode int = 200
FaveGetCollectionsOKCode is the HTTP code returned for type FaveGetCollectionsOK
FaveGetCollectionsUnauthorizedCode is the HTTP code returned for type FaveGetCollectionsUnauthorized
const FaveGetCollectionsUnprocessableEntityCode int = 422
FaveGetCollectionsUnprocessableEntityCode is the HTTP code returned for type FaveGetCollectionsUnprocessableEntity
const FaveGetDocumentsBadRequestCode int = 400
FaveGetDocumentsBadRequestCode is the HTTP code returned for type FaveGetDocumentsBadRequest
const FaveGetDocumentsNotFoundCode int = 404
FaveGetDocumentsNotFoundCode is the HTTP code returned for type FaveGetDocumentsNotFound
const FaveGetDocumentsOKCode int = 200
FaveGetDocumentsOKCode is the HTTP code returned for type FaveGetDocumentsOK
const FaveGetNearestDocumentsBadRequestCode int = 400
FaveGetNearestDocumentsBadRequestCode is the HTTP code returned for type FaveGetNearestDocumentsBadRequest
const FaveGetNearestDocumentsByVectorBadRequestCode int = 400
FaveGetNearestDocumentsByVectorBadRequestCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorBadRequest
const FaveGetNearestDocumentsByVectorForbiddenCode int = 403
FaveGetNearestDocumentsByVectorForbiddenCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorForbidden
const FaveGetNearestDocumentsByVectorInternalServerErrorCode int = 500
FaveGetNearestDocumentsByVectorInternalServerErrorCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorInternalServerError
const FaveGetNearestDocumentsByVectorOKCode int = 200
FaveGetNearestDocumentsByVectorOKCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorOK
FaveGetNearestDocumentsByVectorUnauthorizedCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorUnauthorized
const FaveGetNearestDocumentsByVectorUnprocessableEntityCode int = 422
FaveGetNearestDocumentsByVectorUnprocessableEntityCode is the HTTP code returned for type FaveGetNearestDocumentsByVectorUnprocessableEntity
const FaveGetNearestDocumentsForbiddenCode int = 403
FaveGetNearestDocumentsForbiddenCode is the HTTP code returned for type FaveGetNearestDocumentsForbidden
const FaveGetNearestDocumentsInternalServerErrorCode int = 500
FaveGetNearestDocumentsInternalServerErrorCode is the HTTP code returned for type FaveGetNearestDocumentsInternalServerError
const FaveGetNearestDocumentsOKCode int = 200
FaveGetNearestDocumentsOKCode is the HTTP code returned for type FaveGetNearestDocumentsOK
FaveGetNearestDocumentsUnauthorizedCode is the HTTP code returned for type FaveGetNearestDocumentsUnauthorized
const FaveGetNearestDocumentsUnprocessableEntityCode int = 422
FaveGetNearestDocumentsUnprocessableEntityCode is the HTTP code returned for type FaveGetNearestDocumentsUnprocessableEntity
const FaveHelloOKCode int = 200
FaveHelloOKCode is the HTTP code returned for type FaveHelloOK
const FaveRootOKCode int = 200
FaveRootOKCode is the HTTP code returned for type FaveRootOK
const GetDocumentsBadRequestCode int = 400
GetDocumentsBadRequestCode is the HTTP code returned for type GetDocumentsBadRequest
const GetDocumentsNotFoundCode int = 404
GetDocumentsNotFoundCode is the HTTP code returned for type GetDocumentsNotFound
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 ¶
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 ¶
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 ¶
DefaultConsumes returns the default consumes media type
func (*FaveAPI) DefaultProduces ¶
DefaultProduces returns the default produces media type
func (*FaveAPI) HandlerFor ¶
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 ¶
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*FaveAPI) RegisterConsumer ¶
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*FaveAPI) RegisterFormat ¶
RegisterFormat registers a custom format validator
func (*FaveAPI) RegisterProducer ¶
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 ¶
ServeErrorFor gets a error handler for a given operation id
func (*FaveAPI) SetDefaultConsumes ¶
SetDefaultConsumes returns the default consumes media type
func (*FaveAPI) SetDefaultProduces ¶
SetDefaultProduces sets the default produces media type
func (*FaveAPI) UseSwaggerUI ¶
func (o *FaveAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
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 ¶
func (o *FaveAddDocumentsBadRequest) WithPayload(payload *models.ErrorResponse) *FaveAddDocumentsBadRequest
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 ¶
func (o *FaveAddDocumentsForbidden) WithPayload(payload *models.ErrorResponse) *FaveAddDocumentsForbidden
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 ¶
func (fn FaveAddDocumentsHandlerFunc) Handle(params FaveAddDocumentsParams) middleware.Responder
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 ¶
func (o *FaveAddDocumentsInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave add documents internal server error response
func (*FaveAddDocumentsInternalServerError) WithPayload ¶
func (o *FaveAddDocumentsInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveAddDocumentsInternalServerError
WithPayload adds the payload to the fave add documents internal server error response
func (*FaveAddDocumentsInternalServerError) WriteResponse ¶
func (o *FaveAddDocumentsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
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 ¶
func (o *FaveAddDocumentsUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave add documents unprocessable entity response
func (*FaveAddDocumentsUnprocessableEntity) WithPayload ¶
func (o *FaveAddDocumentsUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveAddDocumentsUnprocessableEntity
WithPayload adds the payload to the fave add documents unprocessable entity response
func (*FaveAddDocumentsUnprocessableEntity) WriteResponse ¶
func (o *FaveAddDocumentsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *FaveCreateCollectionBadRequest) WithPayload(payload *models.ErrorResponse) *FaveCreateCollectionBadRequest
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 ¶
func (o *FaveCreateCollectionForbidden) WithPayload(payload *models.ErrorResponse) *FaveCreateCollectionForbidden
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 ¶
func (fn FaveCreateCollectionHandlerFunc) Handle(params FaveCreateCollectionParams) middleware.Responder
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 ¶
func (o *FaveCreateCollectionInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave create collection internal server error response
func (*FaveCreateCollectionInternalServerError) WithPayload ¶
func (o *FaveCreateCollectionInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveCreateCollectionInternalServerError
WithPayload adds the payload to the fave create collection internal server error response
func (*FaveCreateCollectionInternalServerError) WriteResponse ¶
func (o *FaveCreateCollectionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *FaveCreateCollectionOK) WithPayload(payload *models.OKResponse) *FaveCreateCollectionOK
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 ¶
func (o *FaveCreateCollectionParams) 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 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 ¶
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 ¶
func (o *FaveCreateCollectionURL) WithBasePath(bp string) *FaveCreateCollectionURL
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 ¶
func (o *FaveCreateCollectionUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave create collection unprocessable entity response
func (*FaveCreateCollectionUnprocessableEntity) WithPayload ¶
func (o *FaveCreateCollectionUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveCreateCollectionUnprocessableEntity
WithPayload adds the payload to the fave create collection unprocessable entity response
func (*FaveCreateCollectionUnprocessableEntity) WriteResponse ¶
func (o *FaveCreateCollectionUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *FaveDeleteCollectionBadRequest) WithPayload(payload *models.ErrorResponse) *FaveDeleteCollectionBadRequest
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 ¶
func (o *FaveDeleteCollectionForbidden) WithPayload(payload *models.ErrorResponse) *FaveDeleteCollectionForbidden
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 ¶
func (fn FaveDeleteCollectionHandlerFunc) Handle(params FaveDeleteCollectionParams) middleware.Responder
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 ¶
func (o *FaveDeleteCollectionInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave delete collection internal server error response
func (*FaveDeleteCollectionInternalServerError) WithPayload ¶
func (o *FaveDeleteCollectionInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveDeleteCollectionInternalServerError
WithPayload adds the payload to the fave delete collection internal server error response
func (*FaveDeleteCollectionInternalServerError) WriteResponse ¶
func (o *FaveDeleteCollectionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *FaveDeleteCollectionOK) WithPayload(payload *models.OKResponse) *FaveDeleteCollectionOK
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 ¶
func (o *FaveDeleteCollectionParams) 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 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 ¶
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 ¶
func (o *FaveDeleteCollectionURL) WithBasePath(bp string) *FaveDeleteCollectionURL
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 ¶
func (o *FaveDeleteCollectionUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave delete collection unprocessable entity response
func (*FaveDeleteCollectionUnprocessableEntity) WithPayload ¶
func (o *FaveDeleteCollectionUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveDeleteCollectionUnprocessableEntity
WithPayload adds the payload to the fave delete collection unprocessable entity response
func (*FaveDeleteCollectionUnprocessableEntity) WriteResponse ¶
func (o *FaveDeleteCollectionUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *FaveGetCollectionsBadRequest) WithPayload(payload *models.ErrorResponse) *FaveGetCollectionsBadRequest
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 ¶
func (o *FaveGetCollectionsForbidden) WithPayload(payload *models.ErrorResponse) *FaveGetCollectionsForbidden
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 ¶
func (fn FaveGetCollectionsHandlerFunc) Handle(params FaveGetCollectionsParams) middleware.Responder
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 ¶
func (o *FaveGetCollectionsInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave get collections internal server error response
func (*FaveGetCollectionsInternalServerError) WithPayload ¶
func (o *FaveGetCollectionsInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveGetCollectionsInternalServerError
WithPayload adds the payload to the fave get collections internal server error response
func (*FaveGetCollectionsInternalServerError) WriteResponse ¶
func (o *FaveGetCollectionsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *FaveGetCollectionsParams) 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 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 ¶
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 ¶
func (o *FaveGetCollectionsUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave get collections unprocessable entity response
func (*FaveGetCollectionsUnprocessableEntity) WithPayload ¶
func (o *FaveGetCollectionsUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveGetCollectionsUnprocessableEntity
WithPayload adds the payload to the fave get collections unprocessable entity response
func (*FaveGetCollectionsUnprocessableEntity) WriteResponse ¶
func (o *FaveGetCollectionsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *FaveGetDocumentsBadRequest) WithPayload(payload *models.ErrorResponse) *FaveGetDocumentsBadRequest
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 ¶
func (fn FaveGetDocumentsHandlerFunc) Handle(params FaveGetDocumentsParams) middleware.Responder
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 ¶
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 ¶
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 ¶
func (o *FaveGetNearestDocuments) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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 ¶
func (o *FaveGetNearestDocumentsBadRequest) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsBadRequest
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
func (o *FaveGetNearestDocumentsByVector) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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
func (o *FaveGetNearestDocumentsByVectorBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave get nearest documents by vector bad request response
func (*FaveGetNearestDocumentsByVectorBadRequest) WithPayload ¶ added in v0.1.5
func (o *FaveGetNearestDocumentsByVectorBadRequest) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsByVectorBadRequest
WithPayload adds the payload to the fave get nearest documents by vector bad request response
func (*FaveGetNearestDocumentsByVectorBadRequest) WriteResponse ¶ added in v0.1.5
func (o *FaveGetNearestDocumentsByVectorBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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
func (o *FaveGetNearestDocumentsByVectorForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave get nearest documents by vector forbidden response
func (*FaveGetNearestDocumentsByVectorForbidden) WithPayload ¶ added in v0.1.5
func (o *FaveGetNearestDocumentsByVectorForbidden) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsByVectorForbidden
WithPayload adds the payload to the fave get nearest documents by vector forbidden response
func (*FaveGetNearestDocumentsByVectorForbidden) WriteResponse ¶ added in v0.1.5
func (o *FaveGetNearestDocumentsByVectorForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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
func (fn FaveGetNearestDocumentsByVectorHandlerFunc) Handle(params FaveGetNearestDocumentsByVectorParams) middleware.Responder
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
func (o *FaveGetNearestDocumentsByVectorInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave get nearest documents by vector internal server error response
func (*FaveGetNearestDocumentsByVectorInternalServerError) WithPayload ¶ added in v0.1.5
func (o *FaveGetNearestDocumentsByVectorInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsByVectorInternalServerError
WithPayload adds the payload to the fave get nearest documents by vector internal server error response
func (*FaveGetNearestDocumentsByVectorInternalServerError) WriteResponse ¶ added in v0.1.5
func (o *FaveGetNearestDocumentsByVectorInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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
func (o *FaveGetNearestDocumentsByVectorOK) SetPayload(payload *models.NearestDocumentsResponse)
SetPayload sets the payload to the fave get nearest documents by vector o k response
func (*FaveGetNearestDocumentsByVectorOK) WithPayload ¶ added in v0.1.5
func (o *FaveGetNearestDocumentsByVectorOK) WithPayload(payload *models.NearestDocumentsResponse) *FaveGetNearestDocumentsByVectorOK
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
func (o *FaveGetNearestDocumentsByVectorParams) 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 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
func (o *FaveGetNearestDocumentsByVectorURL) Build() (*url.URL, error)
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
func (o *FaveGetNearestDocumentsByVectorURL) String() string
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
func (o *FaveGetNearestDocumentsByVectorURL) WithBasePath(bp string) *FaveGetNearestDocumentsByVectorURL
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
func (o *FaveGetNearestDocumentsByVectorUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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
func (o *FaveGetNearestDocumentsByVectorUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave get nearest documents by vector unprocessable entity response
func (*FaveGetNearestDocumentsByVectorUnprocessableEntity) WithPayload ¶ added in v0.1.5
func (o *FaveGetNearestDocumentsByVectorUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsByVectorUnprocessableEntity
WithPayload adds the payload to the fave get nearest documents by vector unprocessable entity response
func (*FaveGetNearestDocumentsByVectorUnprocessableEntity) WriteResponse ¶ added in v0.1.5
func (o *FaveGetNearestDocumentsByVectorUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *FaveGetNearestDocumentsForbidden) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsForbidden
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 ¶
func (fn FaveGetNearestDocumentsHandlerFunc) Handle(params FaveGetNearestDocumentsParams) middleware.Responder
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 ¶
func (o *FaveGetNearestDocumentsInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave get nearest documents internal server error response
func (*FaveGetNearestDocumentsInternalServerError) WithPayload ¶
func (o *FaveGetNearestDocumentsInternalServerError) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsInternalServerError
WithPayload adds the payload to the fave get nearest documents internal server error response
func (*FaveGetNearestDocumentsInternalServerError) WriteResponse ¶
func (o *FaveGetNearestDocumentsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *FaveGetNearestDocumentsOK) SetPayload(payload *models.NearestDocumentsResponse)
SetPayload sets the payload to the fave get nearest documents o k response
func (*FaveGetNearestDocumentsOK) WithPayload ¶
func (o *FaveGetNearestDocumentsOK) WithPayload(payload *models.NearestDocumentsResponse) *FaveGetNearestDocumentsOK
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 ¶
func (o *FaveGetNearestDocumentsParams) 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 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 ¶
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 ¶
func (o *FaveGetNearestDocumentsURL) WithBasePath(bp string) *FaveGetNearestDocumentsURL
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 ¶
func (o *FaveGetNearestDocumentsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *FaveGetNearestDocumentsUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the fave get nearest documents unprocessable entity response
func (*FaveGetNearestDocumentsUnprocessableEntity) WithPayload ¶
func (o *FaveGetNearestDocumentsUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *FaveGetNearestDocumentsUnprocessableEntity
WithPayload adds the payload to the fave get nearest documents unprocessable entity response
func (*FaveGetNearestDocumentsUnprocessableEntity) WriteResponse ¶
func (o *FaveGetNearestDocumentsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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
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 ¶
func (fn FaveHelloHandlerFunc) Handle(params FaveHelloParams) middleware.Responder
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 ¶
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 ¶
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
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 ¶
func (fn FaveRootHandlerFunc) Handle(params FaveRootParams) middleware.Responder
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 ¶
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) 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 ¶
func (o *GetDocumentsBadRequest) WithPayload(payload *models.ErrorResponse) *GetDocumentsBadRequest
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 ¶
func (fn GetDocumentsHandlerFunc) Handle(params GetDocumentsParams) middleware.Responder
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 ¶
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 ¶
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
Source Files
¶
- fave_add_documents.go
- fave_add_documents_parameters.go
- fave_add_documents_responses.go
- fave_add_documents_urlbuilder.go
- fave_api.go
- fave_create_collection.go
- fave_create_collection_parameters.go
- fave_create_collection_responses.go
- fave_create_collection_urlbuilder.go
- fave_delete_collection.go
- fave_delete_collection_parameters.go
- fave_delete_collection_responses.go
- fave_delete_collection_urlbuilder.go
- fave_get_collections.go
- fave_get_collections_parameters.go
- fave_get_collections_responses.go
- fave_get_collections_urlbuilder.go
- fave_get_documents.go
- fave_get_documents_parameters.go
- fave_get_documents_responses.go
- fave_get_documents_urlbuilder.go
- fave_get_nearest_documents.go
- fave_get_nearest_documents_by_vector.go
- fave_get_nearest_documents_by_vector_parameters.go
- fave_get_nearest_documents_by_vector_responses.go
- fave_get_nearest_documents_by_vector_urlbuilder.go
- fave_get_nearest_documents_parameters.go
- fave_get_nearest_documents_responses.go
- fave_get_nearest_documents_urlbuilder.go
- fave_hello.go
- fave_hello_parameters.go
- fave_hello_responses.go
- fave_hello_urlbuilder.go
- fave_root.go
- fave_root_parameters.go
- fave_root_responses.go
- fave_root_urlbuilder.go
- get_documents.go
- get_documents_parameters.go
- get_documents_responses.go
- get_documents_urlbuilder.go