Versions in this module Expand all Collapse all v1 v1.0.0 May 24, 2018 Changes in this version + func BackTick() string + func ExtractImports(s model.Struct) []string + func GetContentType(operation model.Operation) string + func GetContextName(o model.Operation) string + func GetExtractRequestContextMethod(s model.Struct) string + func GetInputArgName(o model.Operation) string + func GetInputArgType(o model.Operation) string + func GetInputParamString(o model.Operation) string + func GetMetaArg(o model.Operation) *model.Field + func GetOutputArgDeclaration(o model.Operation) string + func GetOutputArgName(o model.Operation) string + func GetOutputArgType(o model.Operation) string + func GetOutputArgsDeclaration(o model.Operation) []string + func GetRestOperationFilename(o model.Operation) string + func GetRestOperationFormat(o model.Operation) string + func GetRestOperationMethod(o model.Operation) string + func GetRestOperationPath(o model.Operation) string + func GetRestOperationProducesEvents(o model.Operation) string + func GetRestOperationProducesEventsAsSlice(o model.Operation) []string + func GetRestOperationRoles(o model.Operation) []string + func GetRestOperationRolesString(o model.Operation) string + func GetRestServicePath(s model.Struct) string + func HasAnyPathParam(o model.Operation) bool + func HasContentType(operation model.Operation) bool + func HasContext(o model.Operation) bool + func HasInput(o model.Operation) bool + func HasMetaOutput(o model.Operation) bool + func HasOperationsWithInput(s model.Struct) bool + func HasOutput(o model.Operation) bool + func HasRequestContext(o model.Operation) bool + func HasRestOperationAfter(o model.Operation) bool + func HasUpload(o model.Operation) bool + func IsBoolArg(f model.Field) bool + func IsContextArg(f model.Field) bool + func IsDateArg(f model.Field) bool + func IsErrorArg(f model.Field) bool + func IsInputArgMandatory(o model.Operation, arg model.Field) bool + func IsMetaCallback(o model.Operation) bool + func IsMetaCallbackArg(f model.Field) bool + func IsNumberArg(f model.Field) bool + func IsPrimitiveArg(f model.Field) bool + func IsQueryParam(o model.Operation, arg model.Field) bool + func IsRequestContextArg(f model.Field) bool + func IsRestOperation(o model.Operation) bool + func IsRestOperationCSV(o model.Operation) bool + func IsRestOperationCustom(o model.Operation) bool + func IsRestOperationForm(o model.Operation) bool + func IsRestOperationGenerated(o model.Operation) bool + func IsRestOperationHTML(o model.Operation) bool + func IsRestOperationJSON(o model.Operation) bool + func IsRestOperationMD(o model.Operation) bool + func IsRestOperationNoContent(o model.Operation) bool + func IsRestOperationNoWrap(o model.Operation) bool + func IsRestOperationTXT(o model.Operation) bool + func IsRestOperationTransactional(s model.Struct, o model.Operation) bool + func IsRestService(s model.Struct) bool + func IsRestServiceNoTest(s model.Struct) bool + func IsRestServiceNoValidation(s model.Struct) bool + func IsRestServiceUnprotected(s model.Struct) bool + func IsSliceParam(arg model.Field) bool + func IsStringArg(f model.Field) bool + func IsStringSliceArg(f model.Field) bool + func IsUploadArg(f model.Field) bool + func NeedsContext(o model.Operation) bool + func NewGenerator() generator.Generator + func RequiresParamValidation(o model.Operation) bool + func ReturnsError(o model.Operation) bool + func SurroundWithBackTicks(body string) string + func ToFirstUpper(in string) string + type Generator struct + func (eg *Generator) Generate(inputDir string, parsedSource model.ParsedSources) error + func (eg *Generator) GetAnnotations() []annotation.AnnotationDescriptor