gqlgen: github.com/99designs/gqlgen/graphql/handler Index | Files | Directories

package handler

import "github.com/99designs/gqlgen/graphql/handler"

Index

Package Files

server.go

type FieldFunc Uses

type FieldFunc func(ctx context.Context, next graphql.Resolver) (res interface{}, err error)

func (FieldFunc) ExtensionName Uses

func (f FieldFunc) ExtensionName() string

func (FieldFunc) InterceptField Uses

func (f FieldFunc) InterceptField(ctx context.Context, next graphql.Resolver) (res interface{}, err error)

func (FieldFunc) Validate Uses

func (f FieldFunc) Validate(schema graphql.ExecutableSchema) error

type OperationFunc Uses

type OperationFunc func(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler

func (OperationFunc) ExtensionName Uses

func (r OperationFunc) ExtensionName() string

func (OperationFunc) InterceptOperation Uses

func (r OperationFunc) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler

func (OperationFunc) Validate Uses

func (r OperationFunc) Validate(schema graphql.ExecutableSchema) error

type ResponseFunc Uses

type ResponseFunc func(ctx context.Context, next graphql.ResponseHandler) *graphql.Response

func (ResponseFunc) ExtensionName Uses

func (r ResponseFunc) ExtensionName() string

func (ResponseFunc) InterceptResponse Uses

func (r ResponseFunc) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response

func (ResponseFunc) Validate Uses

func (r ResponseFunc) Validate(schema graphql.ExecutableSchema) error

type Server Uses

type Server struct {
    // contains filtered or unexported fields
}

func New Uses

func New(es graphql.ExecutableSchema) *Server

func NewDefaultServer Uses

func NewDefaultServer(es graphql.ExecutableSchema) *Server

func (*Server) AddTransport Uses

func (s *Server) AddTransport(transport graphql.Transport)

func (*Server) AroundFields Uses

func (s *Server) AroundFields(f graphql.FieldMiddleware)

AroundFields is a convenience method for creating an extension that only implements field middleware

func (*Server) AroundOperations Uses

func (s *Server) AroundOperations(f graphql.OperationMiddleware)

AroundOperations is a convenience method for creating an extension that only implements operation middleware

func (*Server) AroundResponses Uses

func (s *Server) AroundResponses(f graphql.ResponseMiddleware)

AroundResponses is a convenience method for creating an extension that only implements response middleware

func (*Server) ServeHTTP Uses

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) SetErrorPresenter Uses

func (s *Server) SetErrorPresenter(f graphql.ErrorPresenterFunc)

func (*Server) SetQueryCache Uses

func (s *Server) SetQueryCache(cache graphql.Cache)

func (*Server) SetRecoverFunc Uses

func (s *Server) SetRecoverFunc(f graphql.RecoverFunc)

func (*Server) Use Uses

func (s *Server) Use(extension graphql.HandlerExtension)

Directories

PathSynopsis
apollotracing
debug
extension
lru
testserver
transport

Package handler imports 11 packages (graph) and is imported by 61 packages. Updated 2020-07-27. Refresh now. Tools for package owners.