Documentation ¶
Index ¶
- Variables
- func DefaultValue(typ *spec.TypeDef, value string) string
- func GenerateClient(specification *spec.Spec, jsonlib string, packageName string, ...) *sources.Sources
- func GenerateModels(specification *spec.Spec, jsonlib string, packageName string, ...) *sources.Sources
- func GenerateService(specification *spec.Spec, jsonlib string, packageName string, ...) *sources.Sources
- func JoinDelimParams(params []string) string
- func JoinParams(params []string) string
- func NewJavaWriter() *sources.Writer
- func TrimSlash(param string) string
- type Generator
- type JacksonGenerator
- func (g *JacksonGenerator) EnumModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
- func (g *JacksonGenerator) ObjectModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
- func (g *JacksonGenerator) OneOfModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
- func (g *JacksonGenerator) SetupLibrary(thePackage Module) []sources.CodeFile
- type ModelsGenerator
- type Module
- type MoshiGenerator
- func (g *MoshiGenerator) EnumModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
- func (g *MoshiGenerator) ObjectModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
- func (g *MoshiGenerator) OneOfModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
- func (g *MoshiGenerator) SetupLibrary(thePackage Module) []sources.CodeFile
- type Types
Constants ¶
This section is empty.
Variables ¶
View Source
var Jackson = "jackson"
View Source
var Moshi = "moshi"
View Source
var ToPascalCase = casee.ToPascalCase
Functions ¶
func GenerateClient ¶ added in v2.1.859
func GenerateModels ¶
func GenerateService ¶ added in v2.0.602
func JoinDelimParams ¶ added in v2.1.880
func JoinParams ¶
func NewJavaWriter ¶
Types ¶
type Generator ¶ added in v2.1.1246
type Generator struct { Jsonlib string Types *Types Models ModelsGenerator }
func NewGenerator ¶ added in v2.1.1246
type JacksonGenerator ¶ added in v2.1.1246
type JacksonGenerator struct {
Type *Types
}
func NewJacksonGenerator ¶ added in v2.1.1246
func NewJacksonGenerator(types *Types) *JacksonGenerator
func (*JacksonGenerator) EnumModel ¶ added in v2.1.1246
func (g *JacksonGenerator) EnumModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
func (*JacksonGenerator) ObjectModel ¶ added in v2.1.1246
func (g *JacksonGenerator) ObjectModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
func (*JacksonGenerator) OneOfModel ¶ added in v2.1.1246
func (g *JacksonGenerator) OneOfModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
func (*JacksonGenerator) SetupLibrary ¶ added in v2.1.1246
func (g *JacksonGenerator) SetupLibrary(thePackage Module) []sources.CodeFile
type ModelsGenerator ¶ added in v2.1.1246
type ModelsGenerator interface { SetupLibrary(thePackage Module) []sources.CodeFile ObjectModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile OneOfModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile EnumModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile }
func NewModelsGenerator ¶ added in v2.1.1246
func NewModelsGenerator(jsonlib string) ModelsGenerator
type Module ¶ added in v2.0.614
func (Module) Subpackage ¶ added in v2.0.620
type MoshiGenerator ¶ added in v2.1.1246
type MoshiGenerator struct {
Type *Types
}
func NewMoshiGenerator ¶ added in v2.1.1246
func NewMoshiGenerator(types *Types) *MoshiGenerator
func (*MoshiGenerator) EnumModel ¶ added in v2.1.1246
func (g *MoshiGenerator) EnumModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
func (*MoshiGenerator) ObjectModel ¶ added in v2.1.1246
func (g *MoshiGenerator) ObjectModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
func (*MoshiGenerator) OneOfModel ¶ added in v2.1.1246
func (g *MoshiGenerator) OneOfModel(model *spec.NamedModel, thePackage Module) *sources.CodeFile
func (*MoshiGenerator) SetupLibrary ¶ added in v2.1.1246
func (g *MoshiGenerator) SetupLibrary(thePackage Module) []sources.CodeFile
type Types ¶ added in v2.1.1246
type Types struct {
Jsonlib string
}
func (*Types) JavaIsReferenceType ¶ added in v2.1.1246
Source Files ¶
- check_types.go
- client_okhttp.go
- client_okhttp_exception.go
- client_okhttp_impl.go
- client_okhttp_utils.go
- default.go
- generator.go
- helpers.go
- models.go
- models_common.go
- models_jackson.go
- models_moshi.go
- module.go
- service_spring.go
- service_spring_controllers.go
- service_spring_impl.go
- service_spring_interface.go
- shorthands.go
- type.go
- writer.go
Click to show internal directories.
Click to hide internal directories.