Documentation ¶
Index ¶
- 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 IsCustomArg(f model.Field) bool
- func IsDateArg(f model.Field) bool
- func IsErrorArg(f model.Field) bool
- func IsInputArg(arg model.Field) bool
- func IsInputArgMandatory(o model.Operation, arg model.Field) bool
- func IsIntArg(f model.Field) bool
- func IsMetaCallback(o model.Operation) bool
- func IsMetaCallbackArg(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
- func Uncapitalized(in string) string
- type Generator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractImports ¶
func GetContentType ¶
func GetContextName ¶
func GetInputArgName ¶
func GetInputArgType ¶
func GetInputParamString ¶
func GetOutputArgDeclaration ¶
func GetOutputArgName ¶
func GetOutputArgType ¶
func GetRestOperationFormat ¶
func GetRestOperationMethod ¶
func GetRestOperationPath ¶
func GetRestOperationRoles ¶
func GetRestServicePath ¶
func HasAnyPathParam ¶
func HasContentType ¶
func HasContext ¶
func HasMetaOutput ¶
func HasOperationsWithInput ¶
func HasRequestContext ¶
func HasRestOperationAfter ¶
func IsContextArg ¶
func IsCustomArg ¶ added in v1.1.0
func IsErrorArg ¶
func IsInputArg ¶ added in v1.1.0
func IsMetaCallback ¶
func IsMetaCallbackArg ¶
func IsRequestContextArg ¶
func IsRestOperation ¶
func IsRestOperationCSV ¶
func IsRestOperationCustom ¶
func IsRestOperationForm ¶
func IsRestOperationHTML ¶
func IsRestOperationJSON ¶
func IsRestOperationMD ¶
func IsRestOperationNoWrap ¶
func IsRestOperationTXT ¶
func IsRestService ¶
func IsRestServiceNoTest ¶
func IsSliceParam ¶
func IsStringArg ¶
func IsStringSliceArg ¶
func IsUploadArg ¶
func NeedsContext ¶
func NewGenerator ¶
func RequiresParamValidation ¶
func ReturnsError ¶
func SurroundWithBackTicks ¶
func ToFirstUpper ¶
func Uncapitalized ¶ added in v1.1.0
Types ¶
type Generator ¶
type Generator struct { }
func (*Generator) Generate ¶
func (eg *Generator) Generate(inputDir string, parsedSource model.ParsedSources) error
func (*Generator) GetAnnotations ¶
func (eg *Generator) GetAnnotations() []annotation.AnnotationDescriptor
Source Files ¶
Click to show internal directories.
Click to hide internal directories.