Documentation
¶
Index ¶
- Variables
- func Generate(specification *spec.Spec, ...) *generator.Sources
- type Generator
- func (g *Generator) ErrorModels(httperrors *spec.HttpErrors) []generator.CodeFile
- func (g *Generator) Models(version *spec.Version) []generator.CodeFile
- func (g *Generator) ModelsValidation() *generator.CodeFile
- func (g *Generator) ServicesImplementations(version *spec.Version) []generator.CodeFile
- func (g *Generator) ServicesInterfaces(version *spec.Version) []generator.CodeFile
- type MicronautGenerator
- func (g *MicronautGenerator) ContentType() []generator.CodeFile
- func (g *MicronautGenerator) ErrorsHelpers() *generator.CodeFile
- func (g *MicronautGenerator) ExceptionController(responses *spec.Responses) *generator.CodeFile
- func (g *MicronautGenerator) Json() *generator.CodeFile
- func (g *MicronautGenerator) JsonHelpers() []generator.CodeFile
- func (g *MicronautGenerator) ServiceImplAnnotation(api *spec.Api) (annotationImport, annotation string)
- func (g *MicronautGenerator) ServiceImports() []string
- func (g *MicronautGenerator) ServicesControllers(version *spec.Version) []generator.CodeFile
- type Packages
- type ServerGenerator
- type SpringGenerator
- func (g *SpringGenerator) ContentType() []generator.CodeFile
- func (g *SpringGenerator) ErrorsHelpers() *generator.CodeFile
- func (g *SpringGenerator) ExceptionController(responses *spec.Responses) *generator.CodeFile
- func (g *SpringGenerator) Json() *generator.CodeFile
- func (g *SpringGenerator) JsonHelpers() []generator.CodeFile
- func (g *SpringGenerator) ServiceImplAnnotation(api *spec.Api) (annotationImport, annotation string)
- func (g *SpringGenerator) ServiceImports() []string
- func (g *SpringGenerator) ServicesControllers(version *spec.Version) []generator.CodeFile
- type VersionPackages
Constants ¶
This section is empty.
Variables ¶
View Source
var Micronaut = "micronaut"
View Source
var Spring = "spring"
Functions ¶
Types ¶
type Generator ¶
type Generator struct { ServerGenerator Types *types.Types ModelsGenerator models.Generator Packages *Packages // contains filtered or unexported fields }
func NewGenerator ¶
func (*Generator) ErrorModels ¶
func (g *Generator) ErrorModels(httperrors *spec.HttpErrors) []generator.CodeFile
func (*Generator) ModelsValidation ¶
func (*Generator) ServicesImplementations ¶
type MicronautGenerator ¶
func NewMicronautGenerator ¶
func (*MicronautGenerator) ContentType ¶
func (g *MicronautGenerator) ContentType() []generator.CodeFile
func (*MicronautGenerator) ErrorsHelpers ¶ added in v2.1.2134
func (g *MicronautGenerator) ErrorsHelpers() *generator.CodeFile
func (*MicronautGenerator) ExceptionController ¶
func (g *MicronautGenerator) ExceptionController(responses *spec.Responses) *generator.CodeFile
func (*MicronautGenerator) Json ¶
func (g *MicronautGenerator) Json() *generator.CodeFile
func (*MicronautGenerator) JsonHelpers ¶
func (g *MicronautGenerator) JsonHelpers() []generator.CodeFile
func (*MicronautGenerator) ServiceImplAnnotation ¶
func (g *MicronautGenerator) ServiceImplAnnotation(api *spec.Api) (annotationImport, annotation string)
func (*MicronautGenerator) ServiceImports ¶
func (g *MicronautGenerator) ServiceImports() []string
func (*MicronautGenerator) ServicesControllers ¶
func (g *MicronautGenerator) ServicesControllers(version *spec.Version) []generator.CodeFile
type Packages ¶ added in v2.1.2134
type Packages struct { ContentType packages.Package Json packages.Package Errors packages.Package ErrorsModels packages.Package Converters packages.Package Controllers packages.Package // contains filtered or unexported fields }
func NewServicePackages ¶
type ServerGenerator ¶
type ServerGenerator interface { ServiceImports() []string ServiceImplAnnotation(api *spec.Api) (annotationImport, annotation string) ServicesControllers(version *spec.Version) []generator.CodeFile ExceptionController(responses *spec.Responses) *generator.CodeFile ErrorsHelpers() *generator.CodeFile ContentType() []generator.CodeFile JsonHelpers() []generator.CodeFile }
type SpringGenerator ¶
func NewSpringGenerator ¶
func (*SpringGenerator) ContentType ¶
func (g *SpringGenerator) ContentType() []generator.CodeFile
func (*SpringGenerator) ErrorsHelpers ¶ added in v2.1.2134
func (g *SpringGenerator) ErrorsHelpers() *generator.CodeFile
func (*SpringGenerator) ExceptionController ¶
func (g *SpringGenerator) ExceptionController(responses *spec.Responses) *generator.CodeFile
func (*SpringGenerator) Json ¶
func (g *SpringGenerator) Json() *generator.CodeFile
func (*SpringGenerator) JsonHelpers ¶
func (g *SpringGenerator) JsonHelpers() []generator.CodeFile
func (*SpringGenerator) ServiceImplAnnotation ¶
func (g *SpringGenerator) ServiceImplAnnotation(api *spec.Api) (annotationImport, annotation string)
func (*SpringGenerator) ServiceImports ¶
func (g *SpringGenerator) ServiceImports() []string
func (*SpringGenerator) ServicesControllers ¶
func (g *SpringGenerator) ServicesControllers(version *spec.Version) []generator.CodeFile
Click to show internal directories.
Click to hide internal directories.