Documentation
¶
Index ¶
Constants ¶
View Source
const ( String = "String" Boolean = "boolean" Integer = "int" Object = "Object" List = "List" Float = "float" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
Name string
Package string
Doc string
Root string
Types []Class
Methods []Method
Globals []Param
}
API holds the java-ready structure of an API definition
type Class ¶
type Class struct {
Name string
Members []Member
// Optionally, a class can just extend an external class, as defined in the generator.
Extends string
Implements string
}
Class represents a local class definition from a swagger return type schema
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is a code geneator that renders a complete Java client API code from a swagger definition of our API
func NewGenerator ¶
func NewGenerator() *Generator
NewGenerator creates a new generator and parses the command line arguments
type Method ¶
type Method struct {
Name string
Returns TypeRef
Params []Param
HttpVerb string
Doc string
Path string
}
Method hodls the mapping of a route to a java method and its parameters
Click to show internal directories.
Click to hide internal directories.