Versions in this module Expand all Collapse all v0 v0.0.2 Oct 8, 2023 Changes in this version type Project + ModelMutationHook func(b *modelgen.ModelBuild) *modelgen.ModelBuild v0.0.1 Sep 14, 2023 Changes in this version + var ProjectsContextKey = ContextKey("PROJECTS") + func PrepareCommonContext(ctx context.Context, projCtx *Context) context.Context + func RunProjectGoGenCommand(dir string) error + type Context struct + GeneratedFilePrefix string + ParentPackageName string + Projects map[string]Project + func GetContext(ctx context.Context) (*Context, error) + type ContextKey string + type Project interface + ConfigOverride func(cfg *config.Config) error + ConstraintFieldHook func(td *ast.Definition, fd *ast.FieldDefinition, f *modelgen.Field) (*modelgen.Field, error) + GetType func() string + Init func(Name string, ParentPackageName string, GeneratedFilePrefix string) error + MutationHook func(b *modelgen.ModelBuild) *modelgen.ModelBuild + SchemaDocumentHook func(schemaDocument *ast.SchemaDocument) error + SchemaHook func(schema *ast.Schema) error + TestsDirectory func() string + type ProjectGenerator struct + Projects map[string]Project + func NewProjectGenerator(projects map[string]Project) *ProjectGenerator + func (pg *ProjectGenerator) Generate(ctx context.Context) error + type ProjectGeneratorData struct + Name string + ParentPackageName string + type ProjectOption = func(project Project) error