Documentation
¶
Overview ¶
Package codegen owns the pinned gqlgen integration. Application modules do not carry gqlgen configuration and do not run a second generator.
Index ¶
Constants ¶
View Source
const ( GraphQLABIVersion = "p8-graphql-abi-v5" GoFilename = "zz_golem_graphql.gen.go" SDLFilename = "zz_golem_graphql.schema.graphqls" DefaultGolemImportPath = "github.com/eleven-am/golem/go/golem" DefaultGraphQLImportPath = "github.com/eleven-am/golem/go/graphql" )
View Source
const ( ExecutablePackageDirectory = "golemgqlgen" ExecutableFilename = "zz_golem_graphql_exec.gen.go" ModelsFilename = "zz_golem_graphql_models.gen.go" ResolversFilename = "zz_golem_graphql_resolvers.gen.go" )
View Source
const GQLGenVersion = "v0.17.70"
GQLGenVersion participates in P5 generation identity and is changed only with the GraphQL golden, compile, execution, and determinism gates.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GeneratedFile ¶
type MutationModel ¶
type Request ¶
type Request struct {
PackageName string
AppImportPath string
ModuleDir string
Env []string
SDL string
ContractFingerprint ir.Fingerprint
Actor ir.GoNamedTypeIR
MutationModels []MutationModel
Compilation *ir.CompilationIR
GolemImportPath string
GraphQLImportPath string
RuntimeImportPath string
GenerationDigest string
GeneratorVersion string
TemplateABIVersion string
}
type Result ¶
type Result struct {
Filename string
Source []byte
Files []GeneratedFile
SDLFingerprint ir.Fingerprint
}
Click to show internal directories.
Click to hide internal directories.