graphiql

package
v0.0.0-...-db2b026 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

This directory contains a custom built version of graphiql that is used in the studio.

The original source code is here.

To work with go embed the following setup is used for graphiql in the original source code.

const url = '{{graphqlURL}}';
const subscriptionUrl = window.location.protocol.replace('http', 'ws') + '//' + window.location.host + url;

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlayground

func NewPlayground(opts *PlaygroundOptions) func(http.Handler) http.Handler

func PlaygroundHTML

func PlaygroundHTML() string

Types

type Playground

type Playground struct {
	// contains filtered or unexported fields
}

func (*Playground) ServeHTTP

func (p *Playground) ServeHTTP(w http.ResponseWriter, r *http.Request)

type PlaygroundOptions

type PlaygroundOptions struct {
	Html       string
	GraphqlURL string
}

Jump to

Keyboard shortcuts

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