Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
func (*Annotation) GetKey ¶
func (p *Annotation) GetKey() (v string)
func (*Annotation) GetValues ¶
func (p *Annotation) GetValues() (v []string)
func (*Annotation) String ¶
func (p *Annotation) String() string
type Annotations ¶
type Annotations []*Annotation
func (*Annotations) Append ¶
func (a *Annotations) Append(key, value string)
Append append key value pair to Annotation slice.
func (*Annotations) Get ¶
func (a *Annotations) Get(key string) []string
Get return annotations values.
func (*Annotations) GetFirstValue ¶
func (a *Annotations) GetFirstValue(key string) string
func (*Annotations) ILocValueByKey ¶
func (a *Annotations) ILocValueByKey(key string, idx int) string
ILocValueByKey return annotation value by key and index.
type File ¶
type File struct { Package *Package `json:"-"` //FilePath string //FilePackage string IDLPath string Services []*Service Deps map[string]string // import path -> alias FileDescriptor interface{} }
func (*File) ReferenceName ¶
type Method ¶
type Method struct { Service *Service `json:"-"` Name string RawName string Oneway bool Void bool Args []*Parameter ArgsLength int Resp *Parameter Exceptions []*Parameter ArgStructName string ResStructName string IsResponseNeedRedirect bool // int -> int* GenArgResultStruct bool ClientStreaming bool ServerStreaming bool Streaming *streaming.Streaming Annotations Annotations Deps map[string]string // import path -> alias }
type Service ¶
type Service struct { File *File `json:"-"` ServiceName string RawServiceName string //ServiceTypeName func() string `json:"-"` Methods []*Method HasStreaming bool ServiceFilePath string Protocol string HandlerReturnKeepResp bool UseThriftReflection bool Annotations Annotations Deps map[string]string // import path -> alias }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.