graphwire

package module
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package graphwire generates an application's graph resolver root from the plugin manifests and SDL of every directory under each configured plugin root.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(root string, cfg Config) error

Run loads the manifests and SDL under root and writes the resolver root wiring per cfg.

Types

type Config

type Config struct {
	// ExecImport is the gqlgen exec package declaring ResolverRoot.
	ExecImport string
	// CoreImport is the package exporting the core resolver sets.
	CoreImport string
	// CoreSchemaGlobs locate the core SDL files relative to the root.
	CoreSchemaGlobs []string
	// WiringPath is the generated file destination relative to the root.
	WiringPath string
	// License is the SPDX identifier of the generated header.
	License string
	// Package names the generated package, exporting its identifiers and
	// the FromPlugins assembler. Empty generates an unexported package main.
	Package string
	// SDKImport is the package declaring the plugin interface, required
	// with Package for the FromPlugins assembler.
	SDKImport string
	// Roots lists the plugin root directories scanned in order, empty scanning plugins.
	Roots []string
}

Config parameterizes the resolver root generation for the consuming application.

Jump to

Keyboard shortcuts

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