models

package
v2.1.2120-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateModels

func GenerateModels(specification *spec.Spec, moduleName string, generatePath string) *generator.Sources

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL