graphqlapi

package
v1.170.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 state this replica just changed, by an upload, a re-read, or
	// a re-read the endpoint refused beside a stored schema, 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