Skip to content
Switch branches/tags
Go to file
Latest commit cf6f768 Feb 16, 2020 History
2 contributors

Users who have contributed to this file

// plugin package interfaces are EXPERIMENTAL.
package plugin
import (
type Plugin interface {
Name() string
type ConfigMutator interface {
MutateConfig(cfg *config.Config) error
type CodeGenerator interface {
GenerateCode(cfg *codegen.Data) error
// EarlySourceInjector is used to inject things that are required for user schema files to compile.
type EarlySourceInjector interface {
InjectSourceEarly() *ast.Source
// LateSourceInjector is used to inject more sources, after we have loaded the users schema.
type LateSourceInjector interface {
InjectSourceLate(schema *ast.Schema) *ast.Source