Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Comment string
Package string
// Only used to get the middleware type
FuncTypes []FuncType
Imports []NamedTypeValue
Constants []NamedTypeValue
Vars []NamedTypeValue
Interfaces []Interface
Structures []Struct
Methods []Method
}
File represents a go source file.
type FuncType ¶
type FuncType struct {
Name string
Parameters []NamedTypeValue
Results []NamedTypeValue
}
FuncType is used to store e.x (type Middleware func(a)a) types
type Interface ¶
Interface stores go interface information.
func NewInterface ¶
NewInterface creates a new interface.
func ParsePbFiles ¶
ParsePbFiles Parse file if file doesn't exist, read FileContent from the file @return parsed service interface
type Method ¶
type Method struct {
Comment string
Name string
Struct NamedTypeValue
Body string
Parameters []NamedTypeValue
Results []NamedTypeValue
}
Method stores go method information.
func NewMethod ¶
func NewMethod(name string, str NamedTypeValue, body string, parameters, results []NamedTypeValue) Method
NewMethod creates a new method.
type NamedTypeValue ¶
NamedTypeValue is used to store any type of name type = value ( e.x var a = 2)
func NewNameType ¶
func NewNameType(name string, tp string) NamedTypeValue
NewNameType create a NamedTypeValue without a value.
func NewNameTypeValue ¶
func NewNameTypeValue(name string, tp string, vl string) NamedTypeValue
NewNameTypeValue create a NamedTypeValue with a value.
type Struct ¶
type Struct struct {
Name string
Comment string
Vars []NamedTypeValue
}
Struct stores go struct information.
func NewStruct ¶
func NewStruct(name string, vars []NamedTypeValue) Struct
NewStruct creates a new struct.
Click to show internal directories.
Click to hide internal directories.