ide

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const GraphiqlTemplateV1 = `` /* 978-byte string literal not displayed */
View Source
const GraphiqlTemplateV2 = `` /* 2430-byte string literal not displayed */

Variables

View Source
var GraphiqlVersion = "1.4.1"

GraphiqlVersion is the current version of GraphiQL

View Source
var PlaygroundVersion = "1.7.28"

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