Documentation ¶
Index ¶
- type FieldFunc
- type OperationFunc
- type ResponseFunc
- type Server
- func (s *Server) AddTransport(transport graphql.Transport)
- func (s *Server) AroundFields(f graphql.FieldMiddleware)
- func (s *Server) AroundOperations(f graphql.OperationMiddleware)
- func (s *Server) AroundResponses(f graphql.ResponseMiddleware)
- func (s *Server) Handler() fasthttp.RequestHandler
- func (s *Server) SetErrorPresenter(f graphql.ErrorPresenterFunc)
- func (s *Server) SetQueryCache(cache graphql.Cache)
- func (s *Server) SetRecoverFunc(f graphql.RecoverFunc)
- func (s *Server) Use(extension graphql.HandlerExtension)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
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 (*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) Handler ¶
func (s *Server) Handler() fasthttp.RequestHandler
func (*Server) SetErrorPresenter ¶
func (s *Server) SetErrorPresenter(f graphql.ErrorPresenterFunc)
func (*Server) SetQueryCache ¶
func (*Server) SetRecoverFunc ¶
func (s *Server) SetRecoverFunc(f graphql.RecoverFunc)
func (*Server) Use ¶
func (s *Server) Use(extension graphql.HandlerExtension)
Click to show internal directories.
Click to hide internal directories.