ide

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GraphiqlVersion = "1.4.1"

GraphiqlVersion is the current version of GraphiQL

View Source
var PlaygroundVersion = "1.7.27"

PlaygroundVersion the default version to use

Functions

func RenderGraphiQL

func RenderGraphiQL(config *GraphiQLOptions, w http.ResponseWriter, r *http.Request, params graphql.Params)

renderGraphiQL renders the GraphiQL GUI

func RenderPlayground

func RenderPlayground(config *PlaygroundOptions, w http.ResponseWriter, r *http.Request)

renderPlayground renders the Playground GUI

Types

type GraphiQLOptions

type GraphiQLOptions struct {
	Version              string
	SSL                  bool
	Endpoint             string
	SubscriptionEndpoint string
}

func NewDefaultGraphiQLOptions

func NewDefaultGraphiQLOptions() *GraphiQLOptions

func NewDefaultSSLGraphiQLOption

func NewDefaultSSLGraphiQLOption() *GraphiQLOptions

type PlaygroundOptions

type PlaygroundOptions struct {
	Version              string
	SSL                  bool
	Endpoint             string
	SubscriptionEndpoint string
}

func NewDefaultPlaygroundOptions

func NewDefaultPlaygroundOptions() *PlaygroundOptions

func NewDefaultSSLPlaygroundOptions

func NewDefaultSSLPlaygroundOptions() *PlaygroundOptions

Jump to

Keyboard shortcuts

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