import "github.com/99designs/gqlgen/graphql/handler"
func (f FieldFunc) InterceptField(ctx context.Context, next graphql.Resolver) (res interface{}, err error)
func (f FieldFunc) Validate(schema graphql.ExecutableSchema) error
type OperationFunc func(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler
func (r OperationFunc) ExtensionName() string
func (r OperationFunc) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler
func (r OperationFunc) Validate(schema graphql.ExecutableSchema) error
func (r ResponseFunc) ExtensionName() string
func (r ResponseFunc) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response
func (r ResponseFunc) Validate(schema graphql.ExecutableSchema) error
type Server struct {
// contains filtered or unexported fields
}
func New(es graphql.ExecutableSchema) *Server
func NewDefaultServer(es graphql.ExecutableSchema) *Server
func (s *Server) AroundFields(f graphql.FieldMiddleware)
AroundFields is a convenience method for creating an extension that only implements field middleware
func (s *Server) AroundOperations(f graphql.OperationMiddleware)
AroundOperations is a convenience method for creating an extension that only implements operation middleware
func (s *Server) AroundResponses(f graphql.ResponseMiddleware)
AroundResponses is a convenience method for creating an extension that only implements response middleware
func (s *Server) SetErrorPresenter(f graphql.ErrorPresenterFunc)
func (s *Server) SetRecoverFunc(f graphql.RecoverFunc)
func (s *Server) Use(extension graphql.HandlerExtension)
Path | Synopsis |
---|---|
apollotracing | |
debug | |
extension | |
lru | |
testserver | |
transport |
Package handler imports 11 packages (graph) and is imported by 72 packages. Updated 2020-12-03. Refresh now. Tools for package owners.