Documentation
¶
Index ¶
- func GenerateModels(specification *spec.Spec, moduleName string, generatePath string) *generator.Sources
- type EncodingJsonGenerator
- func (g *EncodingJsonGenerator) EnumValuesStrings(model *spec.NamedModel) string
- func (g *EncodingJsonGenerator) GenerateEnumsHelperFunctions(module module.Module) *generator.CodeFile
- func (g *EncodingJsonGenerator) GenerateVersionModels(models []*spec.NamedModel, module, enumsModule module.Module) *generator.CodeFile
- type Generator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncodingJsonGenerator ¶ added in v2.1.2134
type EncodingJsonGenerator struct{}
func NewEncodingJsonGenerator ¶ added in v2.1.2134
func NewEncodingJsonGenerator() *EncodingJsonGenerator
func (*EncodingJsonGenerator) EnumValuesStrings ¶ added in v2.1.2134
func (g *EncodingJsonGenerator) EnumValuesStrings(model *spec.NamedModel) string
func (*EncodingJsonGenerator) GenerateEnumsHelperFunctions ¶ added in v2.1.2134
func (g *EncodingJsonGenerator) GenerateEnumsHelperFunctions(module module.Module) *generator.CodeFile
func (*EncodingJsonGenerator) GenerateVersionModels ¶ added in v2.1.2134
func (g *EncodingJsonGenerator) GenerateVersionModels(models []*spec.NamedModel, module, enumsModule module.Module) *generator.CodeFile
type Generator ¶ added in v2.1.2134
type Generator interface { GenerateVersionModels(models []*spec.NamedModel, module, enumsModule module.Module) *generator.CodeFile EnumValuesStrings(model *spec.NamedModel) string GenerateEnumsHelperFunctions(module module.Module) *generator.CodeFile }
func NewGenerator ¶ added in v2.1.2134
func NewGenerator() Generator
Click to show internal directories.
Click to hide internal directories.