Documentation
¶
Index ¶
- type Enum
- type EnumLiteral
- type Field
- func (f Field) DereferencedTypeName() string
- func (f Field) EmptyInstance() string
- func (f Field) GetTagMap() map[string]string
- func (f Field) IsBool() bool
- func (f Field) IsBoolSlice() bool
- func (f Field) IsCustom() bool
- func (f Field) IsDate() bool
- func (f Field) IsDateSlice() bool
- func (f Field) IsInt() bool
- func (f Field) IsIntSlice() bool
- func (f Field) IsMap() bool
- func (f Field) IsPointer() bool
- func (f Field) IsPrimitive() bool
- func (f Field) IsPrimitiveSlice() bool
- func (f Field) IsSlice() bool
- func (f Field) IsString() bool
- func (f Field) IsStringSlice() bool
- func (f Field) SliceElementTypeName() string
- func (f Field) SplitMapTypeNames() (string, string)
- func (f Field) SplitTypeName() (string, string)
- type Interface
- type Operation
- type ParsedSources
- type Struct
- type Typedef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum struct {
PackageName string `json:"packageName"`
Filename string `json:"filename"`
DocLines []string `json:"docLines,omitempty"`
Name string `json:"name,omitempty"`
EnumLiterals []EnumLiteral `json:"enumLiterals,omitempty"`
CommentLines []string `json:"commentLines,omitempty"`
}
@JsonStruct()
type EnumLiteral ¶
@JsonStruct()
type Field ¶
type Field struct {
PackageName string `json:"packageName,omitempty"`
DocLines []string `json:"docLines,omitempty"`
Name string `json:"name,omitempty"`
TypeName string `json:"typeName,omitempty"`
Tag string `json:"tag,omitempty"`
CommentLines []string `json:"commentLines,omitempty"`
}
@JsonStruct()
func (Field) DereferencedTypeName ¶ added in v1.1.0
func (Field) EmptyInstance ¶ added in v1.1.0
func (Field) IsBoolSlice ¶ added in v1.1.0
func (Field) IsDateSlice ¶ added in v1.1.0
func (Field) IsIntSlice ¶ added in v1.1.0
func (Field) IsPrimitive ¶ added in v1.1.0
func (Field) IsPrimitiveSlice ¶ added in v1.1.0
func (Field) IsStringSlice ¶ added in v1.1.0
func (Field) SliceElementTypeName ¶ added in v1.1.0
func (Field) SplitMapTypeNames ¶ added in v1.1.0
func (Field) SplitTypeName ¶ added in v1.1.0
type Interface ¶
type Interface struct {
PackageName string `json:"packageName"`
Filename string `json:"filename"`
DocLines []string `json:"docLines,omitempty"`
Name string `json:"name"`
Methods []Operation `json:"methods,omitempty"`
CommentLines []string `json:"commentLines,omitempty"`
}
@JsonStruct()
type Operation ¶
type Operation struct {
PackageName string `json:"packageName,omitempty"`
Filename string `json:"filename,omitempty"`
DocLines []string `json:"docLines,omitempty"`
RelatedStruct *Field `json:"relatedStruct,omitempty"` // optional
Name string `json:"name"`
InputArgs []Field `json:"inputArgs,omitempty"`
OutputArgs []Field `json:"outputArgs,omitempty"`
CommentLines []string `json:"commentLines,omitempty"`
}
@JsonStruct()
type ParsedSources ¶
type ParsedSources struct {
Structs []Struct `json:"structs,omitempty"`
Operations []Operation `json:"operations,omitempty"`
Interfaces []Interface `json:"interfaces,omitempty"`
Typedefs []Typedef `json:"typedefs,omitempty"`
Enums []Enum `json:"enums,omitempty"`
}
@JsonStruct()
type Struct ¶
type Struct struct {
PackageName string `json:"packageName"`
Filename string `json:"filename"`
DocLines []string `json:"docLines,omitempty"`
Name string `json:"name"`
Fields []Field `json:"fields,omitempty"`
Operations []*Operation `json:"operations,omitempty"`
CommentLines []string `json:"commentLines,omitempty"`
}
@JsonStruct()
Click to show internal directories.
Click to hide internal directories.