rest-layer: Index | Files

package graphql

import ""

Package graphql is a `net/http` handler implementing the GraphQL protocol for the REST Layer framework.

This package is part of the rest-layer project. See for full REST Layer documentation.


Package Files

doc.go handler.go query.go types.go

type Handler Uses

type Handler struct {
    // contains filtered or unexported fields

Handler is a net/http compatible handler used to serve the configured GraphQL API.

func NewHandler Uses

func NewHandler(i resource.Index) (*Handler, error)

NewHandler creates an new GraphQL API HTTP handler with the specified resource index.

func (*Handler) ServeHTTP Uses

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles requests as a http.Handler

func (*Handler) ServeHTTPC Uses

func (h *Handler) ServeHTTPC(ctx context.Context, w http.ResponseWriter, r *http.Request)

ServeHTTPC handles requests as a xhandler.HandlerC (deprecated).

Package graphql imports 13 packages (graph) and is imported by 4 packages. Updated 2019-03-30. Refresh now. Tools for package owners.