parse

package
v0.0.0-...-47be27c Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2016 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 Annotation

type Annotation struct {
	Key   string
	Value string
}

func ExtractHttpAnnotation

func ExtractHttpAnnotation(s string) (Annotation, bool)

func ExtractRequestAnnotation

func ExtractRequestAnnotation(s string) (Annotation, bool)

type ParseResult

type ParseResult struct {
	PackageName         string
	RequestType         string
	ApiEndpoint         string
	HttpMethod          string
	PathSubstitutions   map[string]*ast.Field
	QueryParams         map[string]*ast.Field
	PostFormParams      map[string]*ast.Field
	PostMultiPartParams map[string]*ast.Field
	PostParams          map[string]*ast.Field
	HeaderParams        map[string]*ast.Field
	SyncResponse        *ast.Field
	AsyncResponse       *ast.Field
	CallbackType        string
	ResponseType        string
}

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(file *ast.File, pkg string) *Parser

func (*Parser) Parse

func (p *Parser) Parse() *ParseResult

func (*Parser) Visit

func (p *Parser) Visit(node ast.Node) ast.Visitor

Jump to

Keyboard shortcuts

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