graphql

package
v1.18.14 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package graphql provides the HTTP handler factory for the PeeringDB Plus GraphQL API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(resolver *graph.Resolver) http.Handler

NewHandler creates the gqlgen GraphQL handler with complexity and depth limits. Introspection is always enabled per D-20.

func PlaygroundHandler

func PlaygroundHandler(endpoint string) http.HandlerFunc

PlaygroundHandler returns a GraphiQL playground handler with pre-built example queries per D-17, D-19, D-21. Serves at the provided endpoint path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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