introspection

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationMapTypeName = "XgenAnnotationMap"
View Source
const ObjectDefinitionName = "XgenObjectDefinition"
View Source
const TypeName = "XgenIntrospection"

Variables

This section is empty.

Functions

func BuildAnnotationIntroHook

func BuildAnnotationIntroHook(schema *ast.Schema, document *ast.SchemaDocument, introValue *map[string]any) error

func BuildPerObjectIntroHook

func BuildPerObjectIntroHook(schema *ast.Schema, document *ast.SchemaDocument, introValue *map[string]any) error

func BuildPerResourceIntroHook

func BuildPerResourceIntroHook(schema *ast.Schema, document *ast.SchemaDocument, introValue *map[string]any) error

func SchemaGeneratorHook

func SchemaGeneratorHook(
	schema *ast.Schema,
	queryFieldName string,
	generatedFilePath string,
	packageName string,
	parentPackageName string,
	introspectionBuildHooks ...BuilderHook) generator.SchemaHook

SchemaGeneratorHook is a hook that creates a new schema based on the original schema

Types

type BuilderHook

type BuilderHook = func(schema *ast.Schema, document *ast.SchemaDocument, introValue *map[string]any) error

type ResolverBuild

type ResolverBuild struct {
	PackageName                string
	GeneratedGqlgenPackageName string
	IntrospectionData          any
}

Jump to

Keyboard shortcuts

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