graphqlapi

package
v1.131.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package graphqlapi serves the admin surface for a GraphQL connection's schema: reading what the platform holds, re-reading it from the endpoint, and — for an endpoint that disables introspection — accepting one an operator supplies.

It is a decomposition seam of pkg/admin, which sits near its package size budget; the parent mounts it on the admin mux and hands it the live toolkit registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(mux *http.ServeMux, cfg Config)

Register mounts the schema routes on the admin mux.

Types

type Config

type Config struct {
	// Toolkits enumerates the live toolkits, so a connection added
	// through the admin API after startup is reachable here without a
	// restart. nil disables every route in this package.
	Toolkits func() []registry.Toolkit
	// Mutable reports database config mode. False registers the read
	// route only: re-reading a schema writes it to the store, and a
	// file-configured deployment has nowhere to put it.
	Mutable bool
	// SchemaStored is told the connection kind and name whose stored
	// schema this replica just replaced, by an upload or a re-read, so
	// the parent can announce it to peer replicas. Nil announces nothing.
	SchemaStored func(kind, name string)
}

Config carries what the routes need from the parent.

Jump to

Keyboard shortcuts

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