graphql

package
v1.24.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GraphqlBatchForbiddenCode int = 403

GraphqlBatchForbiddenCode is the HTTP code returned for type GraphqlBatchForbidden

View Source
const GraphqlBatchInternalServerErrorCode int = 500

GraphqlBatchInternalServerErrorCode is the HTTP code returned for type GraphqlBatchInternalServerError

View Source
const GraphqlBatchOKCode int = 200

GraphqlBatchOKCode is the HTTP code returned for type GraphqlBatchOK

View Source
const GraphqlBatchUnauthorizedCode int = 401

GraphqlBatchUnauthorizedCode is the HTTP code returned for type GraphqlBatchUnauthorized

View Source
const GraphqlBatchUnprocessableEntityCode int = 422

GraphqlBatchUnprocessableEntityCode is the HTTP code returned for type GraphqlBatchUnprocessableEntity

View Source
const GraphqlPostForbiddenCode int = 403

GraphqlPostForbiddenCode is the HTTP code returned for type GraphqlPostForbidden

View Source
const GraphqlPostInternalServerErrorCode int = 500

GraphqlPostInternalServerErrorCode is the HTTP code returned for type GraphqlPostInternalServerError

View Source
const GraphqlPostOKCode int = 200

GraphqlPostOKCode is the HTTP code returned for type GraphqlPostOK

View Source
const GraphqlPostUnauthorizedCode int = 401

GraphqlPostUnauthorizedCode is the HTTP code returned for type GraphqlPostUnauthorized

View Source
const GraphqlPostUnprocessableEntityCode int = 422

GraphqlPostUnprocessableEntityCode is the HTTP code returned for type GraphqlPostUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphqlBatch

type GraphqlBatch struct {
	Context *middleware.Context
	Handler GraphqlBatchHandler
}
GraphqlBatch swagger:route POST /graphql/batch graphql graphqlBatch

Get a response based on GraphQL.

Perform a batched GraphQL query

func NewGraphqlBatch

func NewGraphqlBatch(ctx *middleware.Context, handler GraphqlBatchHandler) *GraphqlBatch

NewGraphqlBatch creates a new http.Handler for the graphql batch operation

func (*GraphqlBatch) ServeHTTP

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

type GraphqlBatchForbidden

type GraphqlBatchForbidden struct {

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

GraphqlBatchForbidden Forbidden

swagger:response graphqlBatchForbidden

func NewGraphqlBatchForbidden

func NewGraphqlBatchForbidden() *GraphqlBatchForbidden

NewGraphqlBatchForbidden creates GraphqlBatchForbidden with default headers values

func (*GraphqlBatchForbidden) SetPayload

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

SetPayload sets the payload to the graphql batch forbidden response

func (*GraphqlBatchForbidden) WithPayload

WithPayload adds the payload to the graphql batch forbidden response

func (*GraphqlBatchForbidden) WriteResponse

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

WriteResponse to the client

type GraphqlBatchHandler

type GraphqlBatchHandler interface {
	Handle(GraphqlBatchParams, *models.Principal) middleware.Responder
}

GraphqlBatchHandler interface for that can handle valid graphql batch params

type GraphqlBatchHandlerFunc

type GraphqlBatchHandlerFunc func(GraphqlBatchParams, *models.Principal) middleware.Responder

GraphqlBatchHandlerFunc turns a function with the right signature into a graphql batch handler

func (GraphqlBatchHandlerFunc) Handle

Handle executing the request and returning a response

type GraphqlBatchInternalServerError

type GraphqlBatchInternalServerError struct {

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

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

swagger:response graphqlBatchInternalServerError

func NewGraphqlBatchInternalServerError

func NewGraphqlBatchInternalServerError() *GraphqlBatchInternalServerError

NewGraphqlBatchInternalServerError creates GraphqlBatchInternalServerError with default headers values

func (*GraphqlBatchInternalServerError) SetPayload

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

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

func (*GraphqlBatchInternalServerError) WithPayload

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

func (*GraphqlBatchInternalServerError) WriteResponse

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

WriteResponse to the client

type GraphqlBatchOK

type GraphqlBatchOK struct {

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

GraphqlBatchOK Successful query (with select).

swagger:response graphqlBatchOK

func NewGraphqlBatchOK

func NewGraphqlBatchOK() *GraphqlBatchOK

NewGraphqlBatchOK creates GraphqlBatchOK with default headers values

func (*GraphqlBatchOK) SetPayload

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

SetPayload sets the payload to the graphql batch o k response

func (*GraphqlBatchOK) WithPayload

func (o *GraphqlBatchOK) WithPayload(payload models.GraphQLResponses) *GraphqlBatchOK

WithPayload adds the payload to the graphql batch o k response

func (*GraphqlBatchOK) WriteResponse

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

WriteResponse to the client

type GraphqlBatchParams

type GraphqlBatchParams struct {

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

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

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

swagger:parameters graphql.batch

func NewGraphqlBatchParams

func NewGraphqlBatchParams() GraphqlBatchParams

NewGraphqlBatchParams creates a new GraphqlBatchParams object

There are no default values defined in the spec.

func (*GraphqlBatchParams) BindRequest

func (o *GraphqlBatchParams) 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 NewGraphqlBatchParams() beforehand.

type GraphqlBatchURL

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

GraphqlBatchURL generates an URL for the graphql batch operation

func (*GraphqlBatchURL) Build

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

Build a url path and query string

func (*GraphqlBatchURL) BuildFull

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

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

func (*GraphqlBatchURL) Must

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

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

func (*GraphqlBatchURL) SetBasePath

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

func (o *GraphqlBatchURL) String() string

String returns the string representation of the path with query string

func (*GraphqlBatchURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GraphqlBatchURL) WithBasePath

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

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 GraphqlBatchUnauthorized

type GraphqlBatchUnauthorized struct {
}

GraphqlBatchUnauthorized Unauthorized or invalid credentials.

swagger:response graphqlBatchUnauthorized

func NewGraphqlBatchUnauthorized

func NewGraphqlBatchUnauthorized() *GraphqlBatchUnauthorized

NewGraphqlBatchUnauthorized creates GraphqlBatchUnauthorized with default headers values

func (*GraphqlBatchUnauthorized) WriteResponse

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

WriteResponse to the client

type GraphqlBatchUnprocessableEntity

type GraphqlBatchUnprocessableEntity struct {

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

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

func NewGraphqlBatchUnprocessableEntity

func NewGraphqlBatchUnprocessableEntity() *GraphqlBatchUnprocessableEntity

NewGraphqlBatchUnprocessableEntity creates GraphqlBatchUnprocessableEntity with default headers values

func (*GraphqlBatchUnprocessableEntity) SetPayload

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

SetPayload sets the payload to the graphql batch unprocessable entity response

func (*GraphqlBatchUnprocessableEntity) WithPayload

WithPayload adds the payload to the graphql batch unprocessable entity response

func (*GraphqlBatchUnprocessableEntity) WriteResponse

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

WriteResponse to the client

type GraphqlPost

type GraphqlPost struct {
	Context *middleware.Context
	Handler GraphqlPostHandler
}
GraphqlPost swagger:route POST /graphql graphql graphqlPost

Get a response based on GraphQL

Get an object based on GraphQL

func NewGraphqlPost

func NewGraphqlPost(ctx *middleware.Context, handler GraphqlPostHandler) *GraphqlPost

NewGraphqlPost creates a new http.Handler for the graphql post operation

func (*GraphqlPost) ServeHTTP

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

type GraphqlPostForbidden

type GraphqlPostForbidden struct {

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

GraphqlPostForbidden Forbidden

swagger:response graphqlPostForbidden

func NewGraphqlPostForbidden

func NewGraphqlPostForbidden() *GraphqlPostForbidden

NewGraphqlPostForbidden creates GraphqlPostForbidden with default headers values

func (*GraphqlPostForbidden) SetPayload

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

SetPayload sets the payload to the graphql post forbidden response

func (*GraphqlPostForbidden) WithPayload

WithPayload adds the payload to the graphql post forbidden response

func (*GraphqlPostForbidden) WriteResponse

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

WriteResponse to the client

type GraphqlPostHandler

type GraphqlPostHandler interface {
	Handle(GraphqlPostParams, *models.Principal) middleware.Responder
}

GraphqlPostHandler interface for that can handle valid graphql post params

type GraphqlPostHandlerFunc

type GraphqlPostHandlerFunc func(GraphqlPostParams, *models.Principal) middleware.Responder

GraphqlPostHandlerFunc turns a function with the right signature into a graphql post handler

func (GraphqlPostHandlerFunc) Handle

Handle executing the request and returning a response

type GraphqlPostInternalServerError

type GraphqlPostInternalServerError struct {

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

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

swagger:response graphqlPostInternalServerError

func NewGraphqlPostInternalServerError

func NewGraphqlPostInternalServerError() *GraphqlPostInternalServerError

NewGraphqlPostInternalServerError creates GraphqlPostInternalServerError with default headers values

func (*GraphqlPostInternalServerError) SetPayload

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

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

func (*GraphqlPostInternalServerError) WithPayload

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

func (*GraphqlPostInternalServerError) WriteResponse

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

WriteResponse to the client

type GraphqlPostOK

type GraphqlPostOK struct {

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

GraphqlPostOK Successful query (with select).

swagger:response graphqlPostOK

func NewGraphqlPostOK

func NewGraphqlPostOK() *GraphqlPostOK

NewGraphqlPostOK creates GraphqlPostOK with default headers values

func (*GraphqlPostOK) SetPayload

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

SetPayload sets the payload to the graphql post o k response

func (*GraphqlPostOK) WithPayload

func (o *GraphqlPostOK) WithPayload(payload *models.GraphQLResponse) *GraphqlPostOK

WithPayload adds the payload to the graphql post o k response

func (*GraphqlPostOK) WriteResponse

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

WriteResponse to the client

type GraphqlPostParams

type GraphqlPostParams struct {

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

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

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

swagger:parameters graphql.post

func NewGraphqlPostParams

func NewGraphqlPostParams() GraphqlPostParams

NewGraphqlPostParams creates a new GraphqlPostParams object

There are no default values defined in the spec.

func (*GraphqlPostParams) BindRequest

func (o *GraphqlPostParams) 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 NewGraphqlPostParams() beforehand.

type GraphqlPostURL

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

GraphqlPostURL generates an URL for the graphql post operation

func (*GraphqlPostURL) Build

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

Build a url path and query string

func (*GraphqlPostURL) BuildFull

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

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

func (*GraphqlPostURL) Must

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

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

func (*GraphqlPostURL) SetBasePath

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

func (o *GraphqlPostURL) String() string

String returns the string representation of the path with query string

func (*GraphqlPostURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GraphqlPostURL) WithBasePath

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

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 GraphqlPostUnauthorized

type GraphqlPostUnauthorized struct {
}

GraphqlPostUnauthorized Unauthorized or invalid credentials.

swagger:response graphqlPostUnauthorized

func NewGraphqlPostUnauthorized

func NewGraphqlPostUnauthorized() *GraphqlPostUnauthorized

NewGraphqlPostUnauthorized creates GraphqlPostUnauthorized with default headers values

func (*GraphqlPostUnauthorized) WriteResponse

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

WriteResponse to the client

type GraphqlPostUnprocessableEntity

type GraphqlPostUnprocessableEntity struct {

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

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

func NewGraphqlPostUnprocessableEntity

func NewGraphqlPostUnprocessableEntity() *GraphqlPostUnprocessableEntity

NewGraphqlPostUnprocessableEntity creates GraphqlPostUnprocessableEntity with default headers values

func (*GraphqlPostUnprocessableEntity) SetPayload

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

SetPayload sets the payload to the graphql post unprocessable entity response

func (*GraphqlPostUnprocessableEntity) WithPayload

WithPayload adds the payload to the graphql post unprocessable entity response

func (*GraphqlPostUnprocessableEntity) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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