rest-layer: github.com/rs/rest-layer/graphql Index | Files

package graphql

import "github.com/rs/rest-layer/graphql"

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 http://rest-layer.io for full REST Layer documentation.

Index

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 3 packages. Updated 2017-08-01. Refresh now. Tools for package owners.