grapher

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 4 Imported by: 1

README

grapher

Implement GraphQL as a Gopher

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(schema *graphql.Schema, opts ...HandlerOption) *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type HandlerOption added in v0.1.0

type HandlerOption func(h *Handler)

func WithContext added in v0.2.0

func WithContext(withContext WithContextFunc) HandlerOption

func WithExplorer added in v0.1.0

func WithExplorer(name string) HandlerOption

type WithContextFunc added in v0.2.0

type WithContextFunc func(r *http.Request) context.Context

Jump to

Keyboard shortcuts

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