Documentation ¶
Index ¶
- type ModelGeneratorData
- type Project
- func (p *Project) ConstraintFieldHook(td *ast.Definition, fd *ast.FieldDefinition, f *modelgen.Field) (*modelgen.Field, error)
- func (p *Project) ModelMutationHook(b *modelgen.ModelBuild) *modelgen.ModelBuild
- func (p *Project) PrepareTemplateData() *TemplateData
- func (p *Project) SchemaHook(schema *ast.Schema) error
- type ProjectOption
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelGeneratorData ¶
type ModelGeneratorData struct { PackageName string Models map[string]*ast.Definition }
type Project ¶
Project is a default project configuration
func NewProject ¶
func NewProject(option ...ProjectOption) *Project
func (*Project) ConstraintFieldHook ¶
func (p *Project) ConstraintFieldHook(td *ast.Definition, fd *ast.FieldDefinition, f *modelgen.Field) (*modelgen.Field, error)
func (*Project) ModelMutationHook ¶
func (p *Project) ModelMutationHook(b *modelgen.ModelBuild) *modelgen.ModelBuild
func (*Project) PrepareTemplateData ¶
func (p *Project) PrepareTemplateData() *TemplateData
type ProjectOption ¶
func WithBasicProjectOption ¶
func WithBasicProjectOption(option basic.ProjectOption) ProjectOption
type TemplateData ¶
type TemplateData struct { *basic.TemplateData Resources map[string]string }
Click to show internal directories.
Click to hide internal directories.