Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HTTPRequest defines an HTTP request HTTPRequest = iota // HTTPResponse defines an HTTP response HTTPResponse )
Variables ¶
This section is empty.
Functions ¶
func AllTypes ¶
func AllTypes(apiDef *raml.APIDefinition, pkgName string) map[string]TypeTask
AllTypes returns all TypeTask that need to be generated by the code generator
func PascalCaseTypeName ¶
func PascalCaseTypeName(tip TypeInBody) string
PascalCaseTypeName generates pascalcase type name from snackcase method name
Types ¶
type Endpoint ¶
type Endpoint struct { Addr string // complete endpoint address Method *raml.Method Resource *raml.Resource Verb string }
Endpoint represents an endpoint defined in the RAML specs
func (Endpoint) ResourceName ¶
ResourceName returns resource name of an endpoint
type TypeInBody ¶
type TypeInBody struct { Properties map[string]interface{} Description string Endpoint *Endpoint ReqResp int RespCode raml.HTTPCode }
TypeInBody represents a Type that defined inline in the body
func (*TypeInBody) Body ¶
func (tib *TypeInBody) Body() raml.Bodies
Body returns raml.Bodies from TypeInBody object
Click to show internal directories.
Click to hide internal directories.