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 ClientMethod ¶
type File ¶
type File struct {
Package *Package `json:"-"`
IDLPath string
Services []*Service
Deps map[string]string // import path -> alias
FileDescriptor interface{} // parsed file descriptor from IDL, such as desc.FileDescriptor Or parser.Thrift
}
func (*File) ReferenceName ¶
type HttpMethod ¶
type HttpMethod struct {
Name string
HTTPMethod string
Comment string
RequestArgName string
RequestTypeName string
RequestTypePackage string
RequestTypeRawName string
ReturnTypeName string
ReturnTypePackage string
ReturnTypeRawName string
Path string
Serializer string
Deps map[string]string // import path -> alias
Annotations Annotations
Service *Service `json:"-"`
}
type Packages ¶
type Packages []*Package
func (Packages) Methods ¶
func (p Packages) Methods() []*HttpMethod
type Service ¶
type Service struct {
File *File `json:"-"`
Name string
Comment string
Methods []*HttpMethod
ClientMethods []*ClientMethod
BaseDomain string // base domain for client code
ServiceGroup string // service level router group
Deps map[string]string // import path -> alias
Annotations Annotations
}
func (*Service) GetClientMethod ¶
func (s *Service) GetClientMethod(name string) *ClientMethod
func (*Service) GetMethod ¶
func (s *Service) GetMethod(name string) *HttpMethod
Source Files
¶
Click to show internal directories.
Click to hide internal directories.