Documentation
¶
Index ¶
- func GenerateService(specification *spec.Spec, moduleName string, swaggerPath string, ...) *generator.Sources
- type Generator
- type ServiceGenerator
- type VestigoGenerator
- func (g *VestigoGenerator) CheckContentType(contentTypeModule, errorsModule, errorsModelsModule module.Module) *generator.CodeFile
- func (g *VestigoGenerator) GenerateRoutings(version *spec.Version, ...) []generator.CodeFile
- func (g *VestigoGenerator) GenerateSpecRouting(specification *spec.Spec, rootModule module.Module) *generator.CodeFile
- func (g *VestigoGenerator) HttpErrors(...) []generator.CodeFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶ added in v2.1.2134
type Generator struct { Types *types.Types Models models.Generator Service ServiceGenerator }
func NewGenerator ¶ added in v2.1.2134
type ServiceGenerator ¶ added in v2.1.2134
type ServiceGenerator interface { GenerateSpecRouting(specification *spec.Spec, rootModule module.Module) *generator.CodeFile HttpErrors(converterModule, errorsModelsModule, paramsParserModule, respondModule module.Module, responses *spec.Responses) []generator.CodeFile CheckContentType(contentTypeModule, errorsModule, errorsModelsModule module.Module) *generator.CodeFile GenerateRoutings(version *spec.Version, versionModule, routingModule, contentTypeModule, errorsModule, errorsModelsModule, modelsModule, paramsParserModule, respondModule module.Module) []generator.CodeFile }
type VestigoGenerator ¶ added in v2.1.2134
func NewVestigoGenerator ¶ added in v2.1.2134
func NewVestigoGenerator(types *types.Types, models models.Generator) *VestigoGenerator
func (*VestigoGenerator) CheckContentType ¶ added in v2.1.2134
func (g *VestigoGenerator) CheckContentType(contentTypeModule, errorsModule, errorsModelsModule module.Module) *generator.CodeFile
func (*VestigoGenerator) GenerateRoutings ¶ added in v2.1.2134
func (*VestigoGenerator) GenerateSpecRouting ¶ added in v2.1.2134
func (*VestigoGenerator) HttpErrors ¶ added in v2.1.2134
Click to show internal directories.
Click to hide internal directories.