handlerx

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 20 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultServer

func NewDefaultServer(es graphql.ExecutableSchema) *handler.Server

func RegisterPrinter added in v0.0.13

func RegisterPrinter(printer Printer)

func SetupHTTP2GraphQLMapping

func SetupHTTP2GraphQLMapping(operations StringMap, selections StringMap,
	arguments ArgTypeMap, inputTypes ArgTypeMap, typeKinds StringMap)

Types

type ArgTypeMap added in v0.0.20

type ArgTypeMap map[string]StringMap

type DELETE

type DELETE struct{}

DELETE implements the DELETE side of the default HTTP transport defined in https://github.com/APIs-guru/graphql-over-http#post

func (DELETE) Do

func (DELETE) Supports

func (h DELETE) Supports(r *http.Request) bool

type GET

type GET struct{}

GET implements the GET side of the default HTTP transport defined in https://github.com/APIs-guru/graphql-over-http#get

func (GET) Do

func (GET) Supports

func (h GET) Supports(r *http.Request) bool

type Options

type Options struct{}

Options responds to http OPTIONS and HEAD requests

func (Options) Do

func (Options) Supports

func (o Options) Supports(r *http.Request) bool

type POST

type POST struct{}

POST implements the POST side of the default HTTP transport defined in https://github.com/APIs-guru/graphql-over-http#post

func (POST) Do

func (POST) Supports

func (h POST) Supports(r *http.Request) bool

type Printer added in v0.0.13

type Printer interface {
	Println(v ...interface{})
	Printf(format string, v ...interface{})
}

type RESTResponse added in v0.0.9

type RESTResponse struct {
	Code    int             `json:"code"`
	Message string          `json:"message,omitempty"`
	Data    json.RawMessage `json:"data"`
}

RESTResponse is response struct for RESTful API call @see graphql.Response

type StringMap added in v0.0.20

type StringMap map[string]string

1. Global Declaration

Jump to

Keyboard shortcuts

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