handler

package
v0.0.0-...-9c50ee6 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

https://github.com/99designs/gqlgen/blob/v0.17.43/graphql/playground/playground.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(title string, endpoint string) http.HandlerFunc

Handler responsible for setting up the playground

func HandlerWithHeaders

func HandlerWithHeaders(title string, endpoint string, fetcherHeaders map[string]string, uiHeaders map[string]string) http.HandlerFunc

HandlerWithHeaders sets up the playground. fetcherHeaders are used by the playground's fetcher instance and will not be visible in the UI. uiHeaders are default headers that will show up in the UI headers editor.

Types

type Gql

type Gql interface {
	Playground() core.HandlerFunc
	Query() core.HandlerFunc
	// contains filtered or unexported methods
}

func New

func New(logger *zap.Logger, db mysql.Repo, cache redis.Repo) Gql

Jump to

Keyboard shortcuts

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