Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ContentTypeHTML = "text/html" ContentTypeJSON = "application/json" ContentTypeGraphQL = "application/graphql" ContentTypeFormURLEncoded = "application/x-www-form-urlencoded" )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Handler ¶
func (*Handler) ContextHandler ¶
func (h *Handler) ContextHandler(ctx context.Context, ctxreq *fasthttp.RequestCtx)
ContextHandler provides an entrypoint into executing graphQL queries with a user-provided context.
func (*Handler) ServeHTTP ¶
func (h *Handler) ServeHTTP(ctx *fasthttp.RequestCtx)
ServeHTTP provides an entrypoint into executing graphQL queries.
type RequestOptions ¶
type RequestOptions struct { Query string `json:"query" url:"query" schema:"query"` Variables map[string]interface{} `json:"variables" url:"variables" schema:"variables"` OperationName string `json:"operationName" url:"operationName" schema:"operationName"` }
func NewRequestOptions ¶
func NewRequestOptions(ctx *fasthttp.RequestCtx) *RequestOptions
RequestOptions Parses a http.Request into GraphQL request options struct
Click to show internal directories.
Click to hide internal directories.