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.

See http://github.com/rs/rest-layer 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

Package graphql imports 12 packages (graph). Updated 2017-03-17. Refresh now. Tools for package owners.