Documentation
¶
Index ¶
- Constants
- type GraphqlBatch
- type GraphqlBatchForbidden
- type GraphqlBatchHandler
- type GraphqlBatchHandlerFunc
- type GraphqlBatchInternalServerError
- func (o *GraphqlBatchInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *GraphqlBatchInternalServerError) WithPayload(payload *models.ErrorResponse) *GraphqlBatchInternalServerError
- func (o *GraphqlBatchInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GraphqlBatchOK
- type GraphqlBatchParams
- type GraphqlBatchURL
- func (o *GraphqlBatchURL) Build() (*url.URL, error)
- func (o *GraphqlBatchURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GraphqlBatchURL) Must(u *url.URL, err error) *url.URL
- func (o *GraphqlBatchURL) SetBasePath(bp string)
- func (o *GraphqlBatchURL) String() string
- func (o *GraphqlBatchURL) StringFull(scheme, host string) string
- func (o *GraphqlBatchURL) WithBasePath(bp string) *GraphqlBatchURL
- type GraphqlBatchUnauthorized
- type GraphqlBatchUnprocessableEntity
- func (o *GraphqlBatchUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *GraphqlBatchUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *GraphqlBatchUnprocessableEntity
- func (o *GraphqlBatchUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GraphqlPost
- type GraphqlPostForbidden
- type GraphqlPostHandler
- type GraphqlPostHandlerFunc
- type GraphqlPostInternalServerError
- func (o *GraphqlPostInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *GraphqlPostInternalServerError) WithPayload(payload *models.ErrorResponse) *GraphqlPostInternalServerError
- func (o *GraphqlPostInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GraphqlPostOK
- type GraphqlPostParams
- type GraphqlPostURL
- func (o *GraphqlPostURL) Build() (*url.URL, error)
- func (o *GraphqlPostURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GraphqlPostURL) Must(u *url.URL, err error) *url.URL
- func (o *GraphqlPostURL) SetBasePath(bp string)
- func (o *GraphqlPostURL) String() string
- func (o *GraphqlPostURL) StringFull(scheme, host string) string
- func (o *GraphqlPostURL) WithBasePath(bp string) *GraphqlPostURL
- type GraphqlPostUnauthorized
- type GraphqlPostUnprocessableEntity
- func (o *GraphqlPostUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *GraphqlPostUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *GraphqlPostUnprocessableEntity
- func (o *GraphqlPostUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const GraphqlBatchForbiddenCode int = 403
GraphqlBatchForbiddenCode is the HTTP code returned for type GraphqlBatchForbidden
const GraphqlBatchInternalServerErrorCode int = 500
GraphqlBatchInternalServerErrorCode is the HTTP code returned for type GraphqlBatchInternalServerError
const GraphqlBatchOKCode int = 200
GraphqlBatchOKCode is the HTTP code returned for type GraphqlBatchOK
GraphqlBatchUnauthorizedCode is the HTTP code returned for type GraphqlBatchUnauthorized
const GraphqlBatchUnprocessableEntityCode int = 422
GraphqlBatchUnprocessableEntityCode is the HTTP code returned for type GraphqlBatchUnprocessableEntity
const GraphqlPostForbiddenCode int = 403
GraphqlPostForbiddenCode is the HTTP code returned for type GraphqlPostForbidden
const GraphqlPostInternalServerErrorCode int = 500
GraphqlPostInternalServerErrorCode is the HTTP code returned for type GraphqlPostInternalServerError
const GraphqlPostOKCode int = 200
GraphqlPostOKCode is the HTTP code returned for type GraphqlPostOK
GraphqlPostUnauthorizedCode is the HTTP code returned for type GraphqlPostUnauthorized
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 ¶
func (o *GraphqlBatchForbidden) WithPayload(payload *models.ErrorResponse) *GraphqlBatchForbidden
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 ¶
func (fn GraphqlBatchHandlerFunc) Handle(params GraphqlBatchParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *GraphqlBatchInternalServerError) WithPayload(payload *models.ErrorResponse) *GraphqlBatchInternalServerError
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 ¶
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 ¶
func (o *GraphqlBatchUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *GraphqlBatchUnprocessableEntity
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 a response based on a GraphQL query
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 ¶
func (o *GraphqlPostForbidden) WithPayload(payload *models.ErrorResponse) *GraphqlPostForbidden
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 ¶
func (fn GraphqlPostHandlerFunc) Handle(params GraphqlPostParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *GraphqlPostInternalServerError) WithPayload(payload *models.ErrorResponse) *GraphqlPostInternalServerError
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 ¶
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 ¶
func (o *GraphqlPostUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *GraphqlPostUnprocessableEntity
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