Back to godoc.org

Package handler

v0.13.0
Latest Go to latest

The latest major version is .

Published: Sep 21, 2020 | License: MIT | Module: github.com/99designs/gqlgen

Index

type FieldFunc

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

func (FieldFunc) ExtensionName

func (f FieldFunc) ExtensionName() string

func (FieldFunc) InterceptField

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

func (FieldFunc) Validate

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

type OperationFunc

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

func (OperationFunc) ExtensionName

func (r OperationFunc) ExtensionName() string

func (OperationFunc) InterceptOperation

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

func (OperationFunc) Validate

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

type ResponseFunc

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

func (ResponseFunc) ExtensionName

func (r ResponseFunc) ExtensionName() string

func (ResponseFunc) InterceptResponse

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

func (ResponseFunc) Validate

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

type Server

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

func New

func New(es graphql.ExecutableSchema) *Server

func NewDefaultServer

func NewDefaultServer(es graphql.ExecutableSchema) *Server

func (*Server) AddTransport

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

func (*Server) AroundFields

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

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

func (*Server) AroundOperations

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

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

func (*Server) AroundResponses

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

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

func (*Server) ServeHTTP

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

func (*Server) SetErrorPresenter

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

func (*Server) SetQueryCache

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

func (*Server) SetRecoverFunc

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

func (*Server) Use

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier