handler

package
v0.0.0-...-ae622c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 (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 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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL