Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { }
Generator is a generator for HTTP API sources
func (*Generator) GetAnnotationSymbol ¶
func (*Generator) GetAnnotationSymbol() generator.AnnotationSymbol
GetAnnotationSymbol implements generator.Generator#GetAnnotationSymbol
func (*Generator) GetFormatter ¶
GetFormatter implements generator.Generator#GetFormatter
func (*Generator) Run ¶
func (api *Generator) Run(pkg *generator.PackageInfo, nodes []*generator.AnnotatedNode) ([]*generator.Result, error)
Run implementes generator.Generator#Run
type ParameterType ¶
ParameterType represents the type information for a parameter
func (*ParameterType) ResolveAlias ¶
func (pt *ParameterType) ResolveAlias(d *generator.Dependency)
ResolveAlias resolves PackageAlias field with the given Dependency object.
func (*ParameterType) String ¶
func (pt *ParameterType) String() string
type Spec ¶
type Spec struct { ReceiverTypeName string ReceiverName string PathPattern string PathParameters []string StructuredParameter *StructuredParameter FuncName string Method requestMethod ReturnType returnType }
Spec represents API specification
type StructuredParameter ¶
type StructuredParameter struct { Type *ParameterType Parser *api.ParameterParser }
Click to show internal directories.
Click to hide internal directories.