model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

type EnumLiteral struct {
	Name  string `json:"name"`
	Value string `json:"value,omitempty"`
}

@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 (f Field) DereferencedTypeName() string

func (Field) EmptyInstance added in v1.1.0

func (f Field) EmptyInstance() string

func (Field) GetTagMap added in v1.1.0

func (f Field) GetTagMap() map[string]string

func (Field) IsBool added in v1.1.0

func (f Field) IsBool() bool

func (Field) IsBoolSlice added in v1.1.0

func (f Field) IsBoolSlice() bool

func (Field) IsCustom added in v1.1.0

func (f Field) IsCustom() bool

func (Field) IsDate added in v1.1.0

func (f Field) IsDate() bool

func (Field) IsDateSlice added in v1.1.0

func (f Field) IsDateSlice() bool

func (Field) IsInt added in v1.1.0

func (f Field) IsInt() bool

func (Field) IsIntSlice added in v1.1.0

func (f Field) IsIntSlice() bool

func (Field) IsMap added in v1.1.0

func (f Field) IsMap() bool

func (Field) IsPointer

func (f Field) IsPointer() bool

func (Field) IsPrimitive added in v1.1.0

func (f Field) IsPrimitive() bool

func (Field) IsPrimitiveSlice added in v1.1.0

func (f Field) IsPrimitiveSlice() bool

func (Field) IsSlice

func (f Field) IsSlice() bool

func (Field) IsString added in v1.1.0

func (f Field) IsString() bool

func (Field) IsStringSlice added in v1.1.0

func (f Field) IsStringSlice() bool

func (Field) SliceElementTypeName added in v1.1.0

func (f Field) SliceElementTypeName() string

func (Field) SplitMapTypeNames added in v1.1.0

func (f Field) SplitMapTypeNames() (string, string)

func (Field) SplitTypeName added in v1.1.0

func (f Field) SplitTypeName() (string, string)

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()

type Typedef

type Typedef struct {
	PackageName string   `json:"packageName"`
	Filename    string   `json:"filename"`
	DocLines    []string `json:"docLines,omitempty"`
	Name        string   `json:"name"`
	Type        string   `json:"type,omitempty"`
}

@JsonStruct()

Jump to

Keyboard shortcuts

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