graphql

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package graphql package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphQL

type GraphQL struct {
	Logger logger.Logger
	// contains filtered or unexported fields
}

The GraphQL handler handles GraphQL API requests over HTTP.

func NewGraphQL

func NewGraphQL(
	resolverState *resolver.State,
	logger logger.Logger,
	ratelimitStore ratelimitstore.Store,
	maxGraphqlComplexity int,
	authenticator *auth.Authenticator,
) (*GraphQL, error)

NewGraphQL creates a new GraphQL instance

func (*GraphQL) ServeHTTP

func (h *GraphQL) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
Package loader package
Package loader package
Package resolver package
Package resolver package
Package schema contains all of the Schema Definition Files (abbreviated SDL) which define this API.
Package schema contains all of the Schema Definition Files (abbreviated SDL) which define this API.

Jump to

Keyboard shortcuts

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