graphql

package
v0.0.0-...-8832f83 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const WeaviateGraphqlBatchForbiddenCode int = 403

WeaviateGraphqlBatchForbiddenCode is the HTTP code returned for type WeaviateGraphqlBatchForbidden

View Source
const WeaviateGraphqlBatchInternalServerErrorCode int = 500

WeaviateGraphqlBatchInternalServerErrorCode is the HTTP code returned for type WeaviateGraphqlBatchInternalServerError

View Source
const WeaviateGraphqlBatchOKCode int = 200

WeaviateGraphqlBatchOKCode is the HTTP code returned for type WeaviateGraphqlBatchOK

View Source
const WeaviateGraphqlBatchUnauthorizedCode int = 401

WeaviateGraphqlBatchUnauthorizedCode is the HTTP code returned for type WeaviateGraphqlBatchUnauthorized

View Source
const WeaviateGraphqlBatchUnprocessableEntityCode int = 422

WeaviateGraphqlBatchUnprocessableEntityCode is the HTTP code returned for type WeaviateGraphqlBatchUnprocessableEntity

View Source
const WeaviateGraphqlPostForbiddenCode int = 403

WeaviateGraphqlPostForbiddenCode is the HTTP code returned for type WeaviateGraphqlPostForbidden

View Source
const WeaviateGraphqlPostInternalServerErrorCode int = 500

WeaviateGraphqlPostInternalServerErrorCode is the HTTP code returned for type WeaviateGraphqlPostInternalServerError

View Source
const WeaviateGraphqlPostOKCode int = 200

WeaviateGraphqlPostOKCode is the HTTP code returned for type WeaviateGraphqlPostOK

View Source
const WeaviateGraphqlPostUnauthorizedCode int = 401

WeaviateGraphqlPostUnauthorizedCode is the HTTP code returned for type WeaviateGraphqlPostUnauthorized

View Source
const WeaviateGraphqlPostUnprocessableEntityCode int = 422

WeaviateGraphqlPostUnprocessableEntityCode is the HTTP code returned for type WeaviateGraphqlPostUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type WeaviateGraphqlBatch

type WeaviateGraphqlBatch struct {
	Context *middleware.Context
	Handler WeaviateGraphqlBatchHandler
}

WeaviateGraphqlBatch swagger:route POST /graphql/batch graphql weaviateGraphqlBatch

Get a response based on GraphQL.

Perform a batched GraphQL query

func NewWeaviateGraphqlBatch

func NewWeaviateGraphqlBatch(ctx *middleware.Context, handler WeaviateGraphqlBatchHandler) *WeaviateGraphqlBatch

NewWeaviateGraphqlBatch creates a new http.Handler for the weaviate graphql batch operation

func (*WeaviateGraphqlBatch) ServeHTTP

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

type WeaviateGraphqlBatchForbidden

type WeaviateGraphqlBatchForbidden struct {
}

WeaviateGraphqlBatchForbidden The used API-key has insufficient permissions.

swagger:response weaviateGraphqlBatchForbidden

func NewWeaviateGraphqlBatchForbidden

func NewWeaviateGraphqlBatchForbidden() *WeaviateGraphqlBatchForbidden

NewWeaviateGraphqlBatchForbidden creates WeaviateGraphqlBatchForbidden with default headers values

func (*WeaviateGraphqlBatchForbidden) WriteResponse

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

WriteResponse to the client

type WeaviateGraphqlBatchHandler

type WeaviateGraphqlBatchHandler interface {
	Handle(WeaviateGraphqlBatchParams) middleware.Responder
}

WeaviateGraphqlBatchHandler interface for that can handle valid weaviate graphql batch params

type WeaviateGraphqlBatchHandlerFunc

type WeaviateGraphqlBatchHandlerFunc func(WeaviateGraphqlBatchParams) middleware.Responder

WeaviateGraphqlBatchHandlerFunc turns a function with the right signature into a weaviate graphql batch handler

func (WeaviateGraphqlBatchHandlerFunc) Handle

Handle executing the request and returning a response

type WeaviateGraphqlBatchInternalServerError

type WeaviateGraphqlBatchInternalServerError struct {

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

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

swagger:response weaviateGraphqlBatchInternalServerError

func NewWeaviateGraphqlBatchInternalServerError

func NewWeaviateGraphqlBatchInternalServerError() *WeaviateGraphqlBatchInternalServerError

NewWeaviateGraphqlBatchInternalServerError creates WeaviateGraphqlBatchInternalServerError with default headers values

func (*WeaviateGraphqlBatchInternalServerError) SetPayload

SetPayload sets the payload to the weaviate graphql batch internal server error response

func (*WeaviateGraphqlBatchInternalServerError) WithPayload

WithPayload adds the payload to the weaviate graphql batch internal server error response

func (*WeaviateGraphqlBatchInternalServerError) WriteResponse

WriteResponse to the client

type WeaviateGraphqlBatchOK

type WeaviateGraphqlBatchOK struct {

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

WeaviateGraphqlBatchOK Successful query (with select).

swagger:response weaviateGraphqlBatchOK

func NewWeaviateGraphqlBatchOK

func NewWeaviateGraphqlBatchOK() *WeaviateGraphqlBatchOK

NewWeaviateGraphqlBatchOK creates WeaviateGraphqlBatchOK with default headers values

func (*WeaviateGraphqlBatchOK) SetPayload

func (o *WeaviateGraphqlBatchOK) SetPayload(payload models.GraphQLResponses)

SetPayload sets the payload to the weaviate graphql batch o k response

func (*WeaviateGraphqlBatchOK) WithPayload

WithPayload adds the payload to the weaviate graphql batch o k response

func (*WeaviateGraphqlBatchOK) WriteResponse

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

WriteResponse to the client

type WeaviateGraphqlBatchParams

type WeaviateGraphqlBatchParams struct {

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

	/*The GraphQL queries.
	  Required: true
	  In: body
	*/
	Body models.GraphQLQueries
}

WeaviateGraphqlBatchParams contains all the bound params for the weaviate graphql batch operation typically these are obtained from a http.Request

swagger:parameters weaviate.graphql.batch

func NewWeaviateGraphqlBatchParams

func NewWeaviateGraphqlBatchParams() WeaviateGraphqlBatchParams

NewWeaviateGraphqlBatchParams creates a new WeaviateGraphqlBatchParams object no default values defined in spec.

func (*WeaviateGraphqlBatchParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewWeaviateGraphqlBatchParams() beforehand.

type WeaviateGraphqlBatchURL

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

WeaviateGraphqlBatchURL generates an URL for the weaviate graphql batch operation

func (*WeaviateGraphqlBatchURL) Build

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

Build a url path and query string

func (*WeaviateGraphqlBatchURL) BuildFull

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

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

func (*WeaviateGraphqlBatchURL) Must

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

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

func (*WeaviateGraphqlBatchURL) SetBasePath

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

func (o *WeaviateGraphqlBatchURL) String() string

String returns the string representation of the path with query string

func (*WeaviateGraphqlBatchURL) StringFull

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

StringFull returns the string representation of a complete url

func (*WeaviateGraphqlBatchURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type WeaviateGraphqlBatchUnauthorized

type WeaviateGraphqlBatchUnauthorized struct {
}

WeaviateGraphqlBatchUnauthorized Unauthorized or invalid credentials.

swagger:response weaviateGraphqlBatchUnauthorized

func NewWeaviateGraphqlBatchUnauthorized

func NewWeaviateGraphqlBatchUnauthorized() *WeaviateGraphqlBatchUnauthorized

NewWeaviateGraphqlBatchUnauthorized creates WeaviateGraphqlBatchUnauthorized with default headers values

func (*WeaviateGraphqlBatchUnauthorized) WriteResponse

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

WriteResponse to the client

type WeaviateGraphqlBatchUnprocessableEntity

type WeaviateGraphqlBatchUnprocessableEntity struct {

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

WeaviateGraphqlBatchUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

swagger:response weaviateGraphqlBatchUnprocessableEntity

func NewWeaviateGraphqlBatchUnprocessableEntity

func NewWeaviateGraphqlBatchUnprocessableEntity() *WeaviateGraphqlBatchUnprocessableEntity

NewWeaviateGraphqlBatchUnprocessableEntity creates WeaviateGraphqlBatchUnprocessableEntity with default headers values

func (*WeaviateGraphqlBatchUnprocessableEntity) SetPayload

SetPayload sets the payload to the weaviate graphql batch unprocessable entity response

func (*WeaviateGraphqlBatchUnprocessableEntity) WithPayload

WithPayload adds the payload to the weaviate graphql batch unprocessable entity response

func (*WeaviateGraphqlBatchUnprocessableEntity) WriteResponse

WriteResponse to the client

type WeaviateGraphqlPost

type WeaviateGraphqlPost struct {
	Context *middleware.Context
	Handler WeaviateGraphqlPostHandler
}

WeaviateGraphqlPost swagger:route POST /graphql graphql weaviateGraphqlPost

Get a response based on GraphQL

Get an object based on GraphQL

func NewWeaviateGraphqlPost

func NewWeaviateGraphqlPost(ctx *middleware.Context, handler WeaviateGraphqlPostHandler) *WeaviateGraphqlPost

NewWeaviateGraphqlPost creates a new http.Handler for the weaviate graphql post operation

func (*WeaviateGraphqlPost) ServeHTTP

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

type WeaviateGraphqlPostForbidden

type WeaviateGraphqlPostForbidden struct {
}

WeaviateGraphqlPostForbidden The used API-key has insufficient permissions.

swagger:response weaviateGraphqlPostForbidden

func NewWeaviateGraphqlPostForbidden

func NewWeaviateGraphqlPostForbidden() *WeaviateGraphqlPostForbidden

NewWeaviateGraphqlPostForbidden creates WeaviateGraphqlPostForbidden with default headers values

func (*WeaviateGraphqlPostForbidden) WriteResponse

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

WriteResponse to the client

type WeaviateGraphqlPostHandler

type WeaviateGraphqlPostHandler interface {
	Handle(WeaviateGraphqlPostParams) middleware.Responder
}

WeaviateGraphqlPostHandler interface for that can handle valid weaviate graphql post params

type WeaviateGraphqlPostHandlerFunc

type WeaviateGraphqlPostHandlerFunc func(WeaviateGraphqlPostParams) middleware.Responder

WeaviateGraphqlPostHandlerFunc turns a function with the right signature into a weaviate graphql post handler

func (WeaviateGraphqlPostHandlerFunc) Handle

Handle executing the request and returning a response

type WeaviateGraphqlPostInternalServerError

type WeaviateGraphqlPostInternalServerError struct {

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

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

swagger:response weaviateGraphqlPostInternalServerError

func NewWeaviateGraphqlPostInternalServerError

func NewWeaviateGraphqlPostInternalServerError() *WeaviateGraphqlPostInternalServerError

NewWeaviateGraphqlPostInternalServerError creates WeaviateGraphqlPostInternalServerError with default headers values

func (*WeaviateGraphqlPostInternalServerError) SetPayload

SetPayload sets the payload to the weaviate graphql post internal server error response

func (*WeaviateGraphqlPostInternalServerError) WithPayload

WithPayload adds the payload to the weaviate graphql post internal server error response

func (*WeaviateGraphqlPostInternalServerError) WriteResponse

WriteResponse to the client

type WeaviateGraphqlPostOK

type WeaviateGraphqlPostOK struct {

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

WeaviateGraphqlPostOK Successful query (with select).

swagger:response weaviateGraphqlPostOK

func NewWeaviateGraphqlPostOK

func NewWeaviateGraphqlPostOK() *WeaviateGraphqlPostOK

NewWeaviateGraphqlPostOK creates WeaviateGraphqlPostOK with default headers values

func (*WeaviateGraphqlPostOK) SetPayload

func (o *WeaviateGraphqlPostOK) SetPayload(payload *models.GraphQLResponse)

SetPayload sets the payload to the weaviate graphql post o k response

func (*WeaviateGraphqlPostOK) WithPayload

WithPayload adds the payload to the weaviate graphql post o k response

func (*WeaviateGraphqlPostOK) WriteResponse

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

WriteResponse to the client

type WeaviateGraphqlPostParams

type WeaviateGraphqlPostParams struct {

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

	/*The GraphQL query request parameters.
	  Required: true
	  In: body
	*/
	Body *models.GraphQLQuery
}

WeaviateGraphqlPostParams contains all the bound params for the weaviate graphql post operation typically these are obtained from a http.Request

swagger:parameters weaviate.graphql.post

func NewWeaviateGraphqlPostParams

func NewWeaviateGraphqlPostParams() WeaviateGraphqlPostParams

NewWeaviateGraphqlPostParams creates a new WeaviateGraphqlPostParams object no default values defined in spec.

func (*WeaviateGraphqlPostParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewWeaviateGraphqlPostParams() beforehand.

type WeaviateGraphqlPostURL

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

WeaviateGraphqlPostURL generates an URL for the weaviate graphql post operation

func (*WeaviateGraphqlPostURL) Build

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

Build a url path and query string

func (*WeaviateGraphqlPostURL) BuildFull

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

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

func (*WeaviateGraphqlPostURL) Must

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

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

func (*WeaviateGraphqlPostURL) SetBasePath

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

func (o *WeaviateGraphqlPostURL) String() string

String returns the string representation of the path with query string

func (*WeaviateGraphqlPostURL) StringFull

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

StringFull returns the string representation of a complete url

func (*WeaviateGraphqlPostURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type WeaviateGraphqlPostUnauthorized

type WeaviateGraphqlPostUnauthorized struct {
}

WeaviateGraphqlPostUnauthorized Unauthorized or invalid credentials.

swagger:response weaviateGraphqlPostUnauthorized

func NewWeaviateGraphqlPostUnauthorized

func NewWeaviateGraphqlPostUnauthorized() *WeaviateGraphqlPostUnauthorized

NewWeaviateGraphqlPostUnauthorized creates WeaviateGraphqlPostUnauthorized with default headers values

func (*WeaviateGraphqlPostUnauthorized) WriteResponse

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

WriteResponse to the client

type WeaviateGraphqlPostUnprocessableEntity

type WeaviateGraphqlPostUnprocessableEntity struct {

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

WeaviateGraphqlPostUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

swagger:response weaviateGraphqlPostUnprocessableEntity

func NewWeaviateGraphqlPostUnprocessableEntity

func NewWeaviateGraphqlPostUnprocessableEntity() *WeaviateGraphqlPostUnprocessableEntity

NewWeaviateGraphqlPostUnprocessableEntity creates WeaviateGraphqlPostUnprocessableEntity with default headers values

func (*WeaviateGraphqlPostUnprocessableEntity) SetPayload

SetPayload sets the payload to the weaviate graphql post unprocessable entity response

func (*WeaviateGraphqlPostUnprocessableEntity) WithPayload

WithPayload adds the payload to the weaviate graphql post unprocessable entity response

func (*WeaviateGraphqlPostUnprocessableEntity) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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