graphql

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

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