gqlhandler

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNilSchema returned when New() called with nil argument
	ErrNilSchema = errors.New("could not initialize gqlhandler state: schema is nil")
)

Functions

This section is empty.

Types

type State

type State struct {
	NoIntrospection bool
	// contains filtered or unexported fields
}

State is the GQL handler state

func New

func New(schema *graphql.Schema) (*State, error)

New returns gql handler state based on given schema

func (*State) Handler

func (s *State) Handler(ctx *gramework.Context)

Handler is the simplest

Jump to

Keyboard shortcuts

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