Documentation
¶
Index ¶
- Constants
- func CheckCondition(ctx context.Context, condition string, m *model.ModelData) bool
- type AppStage
- type GenGoModStage
- type GenGobatisMapperStage
- type GenGobatisModelStage
- type GenGobatisStage
- type GenHandlerStage
- type GenMainStage
- type GenProjectStage
- type GenServiceImplStage
- type GenServiceStage
- type ModuleModel
- type ModuleStage
- type Stage
- type SwaggerStage
Constants ¶
View Source
const (
ApplicationStageName = "Generate main"
)
View Source
const (
GenHandlerStageName = "Generate handlers"
)
View Source
const (
GenServiceImplStageName = "Generate service implements"
)
View Source
const (
GenServiceStageName = "Generate services"
)
View Source
const (
GomodStageName = "Generate go.mod"
)
View Source
const (
ProjectStageName = "Project layout"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppStage ¶
type AppStage struct {
// contains filtered or unexported fields
}
func NewAppStage ¶
type GenGoModStage ¶
type GenGoModStage struct {
// contains filtered or unexported fields
}
func NewGenGoModStage ¶
func NewGenGoModStage(target string, tempPath string) *GenGoModStage
func (*GenGoModStage) Name ¶
func (s *GenGoModStage) Name() string
func (*GenGoModStage) ShouldSkip ¶
type GenGobatisMapperStage ¶
type GenGobatisMapperStage struct {
// contains filtered or unexported fields
}
func NeGenGobatisMapperStage ¶
func NeGenGobatisMapperStage(target string, tmplSpec model.TemplateSepc) *GenGobatisMapperStage
func (*GenGobatisMapperStage) Name ¶
func (s *GenGobatisMapperStage) Name() string
func (*GenGobatisMapperStage) Rollback ¶
func (s *GenGobatisMapperStage) Rollback(ctx context.Context) error
func (*GenGobatisMapperStage) ShouldSkip ¶
type GenGobatisModelStage ¶
type GenGobatisModelStage struct {
// contains filtered or unexported fields
}
func NewGenGobatisModelStage ¶
func NewGenGobatisModelStage(target string, tmplSpec model.TemplateSepc) *GenGobatisModelStage
func (*GenGobatisModelStage) Name ¶
func (s *GenGobatisModelStage) Name() string
func (*GenGobatisModelStage) Rollback ¶
func (s *GenGobatisModelStage) Rollback(ctx context.Context) error
func (*GenGobatisModelStage) ShouldSkip ¶
type GenGobatisStage ¶
type GenGobatisStage struct {
// contains filtered or unexported fields
}
func NewGenGobatisStage ¶
func NewGenGobatisStage(target string, tmplSpec model.TemplateSepc) *GenGobatisStage
func (*GenGobatisStage) Name ¶
func (s *GenGobatisStage) Name() string
func (*GenGobatisStage) ShouldSkip ¶
type GenHandlerStage ¶
type GenHandlerStage struct {
// contains filtered or unexported fields
}
func NewGenHandlerStage ¶
func NewGenHandlerStage(target string, tempPath string) *GenHandlerStage
func (*GenHandlerStage) Name ¶
func (s *GenHandlerStage) Name() string
func (*GenHandlerStage) ShouldSkip ¶
type GenMainStage ¶
type GenMainStage struct {
// contains filtered or unexported fields
}
func NewGenMainStage ¶
func NewGenMainStage(target string, tempPath string) *GenMainStage
func (*GenMainStage) Name ¶
func (s *GenMainStage) Name() string
func (*GenMainStage) ShouldSkip ¶
type GenProjectStage ¶
type GenProjectStage struct {
// contains filtered or unexported fields
}
func NewGenProjectStage ¶
func NewGenProjectStage(target string, tempPath string) *GenProjectStage
func (*GenProjectStage) Name ¶
func (s *GenProjectStage) Name() string
func (*GenProjectStage) ShouldSkip ¶
type GenServiceImplStage ¶
type GenServiceImplStage struct {
// contains filtered or unexported fields
}
func NeGenServiceImplStage ¶
func NeGenServiceImplStage(target string, tempPath string) *GenServiceImplStage
func (*GenServiceImplStage) Name ¶
func (s *GenServiceImplStage) Name() string
func (*GenServiceImplStage) Rollback ¶
func (s *GenServiceImplStage) Rollback(ctx context.Context) error
func (*GenServiceImplStage) ShouldSkip ¶
type GenServiceStage ¶
type GenServiceStage struct {
// contains filtered or unexported fields
}
func NewGenServiceStage ¶
func NewGenServiceStage(target string, tempPath string) *GenServiceStage
func (*GenServiceStage) Name ¶
func (s *GenServiceStage) Name() string
func (*GenServiceStage) ShouldSkip ¶
type ModuleStage ¶
type ModuleStage struct {
// contains filtered or unexported fields
}
func NewModuleStage ¶
func NewModuleStage(target string, factory generator.Factory, tmplSpec model.TemplateSepc) *ModuleStage
func (*ModuleStage) Name ¶
func (s *ModuleStage) Name() string
func (*ModuleStage) ShouldSkip ¶
type SwaggerStage ¶
type SwaggerStage struct {
// contains filtered or unexported fields
}
func NewSwaggerStage ¶
func NewSwaggerStage(target string, tmplSpec model.TemplateSepc, allSpecs []model.TemplateSepc) *SwaggerStage
func (*SwaggerStage) Name ¶
func (s *SwaggerStage) Name() string
func (*SwaggerStage) ShouldSkip ¶
Click to show internal directories.
Click to hide internal directories.