plugin

package
v0.0.0-...-f721af5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeGenerator

type CodeGenerator interface {
	GenerateCode(cfg *codegen.Data) error
}

type ConfigMutator

type ConfigMutator interface {
	MutateConfig(cfg *config.Config) error
}

type EarlySourceInjector

type EarlySourceInjector interface {
	InjectSourceEarly() *ast.Source
}

EarlySourceInjector is used to inject things that are required for user schema files to compile. Deprecated: Use EarlySourcesInjector instead

type EarlySourcesInjector

type EarlySourcesInjector interface {
	InjectSourcesEarly() ([]*ast.Source, error)
}

EarlySourcesInjector is used to inject things that are required for user schema files to compile.

type LateSourceInjector

type LateSourceInjector interface {
	InjectSourceLate(schema *ast.Schema) *ast.Source
}

LateSourceInjector is used to inject more sources, after we have loaded the users schema. Deprecated: Use LateSourcesInjector instead

type LateSourcesInjector

type LateSourcesInjector interface {
	InjectSourcesLate(schema *ast.Schema) ([]*ast.Source, error)
}

LateSourcesInjector is used to inject more sources, after we have loaded the users schema.

type Plugin

type Plugin interface {
	Name() string
}

type ResolverImplementer

type ResolverImplementer interface {
	Implement(prevImplementation string, field *codegen.Field) string
}

ResolverImplementer is used to generate code inside resolvers

type SchemaMutator

type SchemaMutator interface {
	MutateSchema(schema *ast.Schema) error
}

SchemaMutator is used to modify the schema before it is used to generate code Similarly to ConfigMutator that is also triggered before code generation, SchemaMutator can be used to modify the schema even before the models are generated.

Jump to

Keyboard shortcuts

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