Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringifyResponse ¶
func StringifyResponse(resp ResponseEntry) string
Types ¶
type DecoratorParser ¶
type DecoratorParser struct {
// contains filtered or unexported fields
}
func New ¶
func New(commentsText string, controller string, controllerAction string) *DecoratorParser
func (*DecoratorParser) GetFunctions ¶
func (p *DecoratorParser) GetFunctions() FunctionsResponse
GetFunctions will return a list of functions from the comment text
func (*DecoratorParser) ParseMethod ¶
func (p *DecoratorParser) ParseMethod() HttpMethod
func (*DecoratorParser) ParseResponse ¶
func (p *DecoratorParser) ParseResponse() []ResponseEntry
ParseResponse parses all of the comments for the function, and returns a slice of response entries (if there are any)
type FunctionEntry ¶
type FunctionsResponse ¶
type FunctionsResponse struct {
FunctionCalls []FunctionEntry
}
func (*FunctionsResponse) GetCallsByName ¶
func (f *FunctionsResponse) GetCallsByName(name string) []FunctionEntry
func (*FunctionsResponse) GetFirstCallByName ¶
func (f *FunctionsResponse) GetFirstCallByName(name string) *FunctionEntry
GetFirstCallByName, or return nil if no calls exist
type HttpMethod ¶
type JsonDecodeEntry ¶
type RequiredPackageEntry ¶
type ResponseEntry ¶
type ReturnType ¶
func ParseReturnType ¶
func ParseReturnType(retType string) ReturnType
type StringifyMethodResponse ¶
type StringifyMethodResponse struct {
Comment string
}
func StringifyMethod ¶
func StringifyMethod(method HttpMethod) StringifyMethodResponse
Click to show internal directories.
Click to hide internal directories.