graphqlserver

package
v1.5.29 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 28 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(service factory.ServiceFactory, muxListener cmux.CMux) factory.AppServerFactory

NewServer create new GraphQL server

func SetRootSubscription

func SetRootSubscription(subsRootResolver interface{})

SetRootSubscription public function this public method made because cannot create dynamic method for embedded struct (issue https://github.com/golang/go/issues/15924) and subscription in graphql cannot subscribe to at most one subscription at a time

Types

type Handler

type Handler interface {
	ServeGraphQL() http.HandlerFunc
	ServePlayground(resp http.ResponseWriter, req *http.Request)
	ServeVoyager(resp http.ResponseWriter, req *http.Request)
}

Handler interface

func NewHandler

func NewHandler(service factory.ServiceFactory) Handler

NewHandler for create public graphql handler (maybe inject to rest handler)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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