Documentation ¶
Index ¶
- Variables
- func GenerateOperationResponse(w *writer.Writer, operation *spec.NamedOperation)
- func GenerateService(specification *spec.Spec, swaggerPath string, generatePath string, ...) *generator.Sources
- func New(response *spec.Response, body string) string
- func ResponseType(operation *spec.NamedOperation, servicePackage string) string
- type Generator
- type Modules
- type ServiceGenerator
Constants ¶
This section is empty.
Variables ¶
View Source
var Express = "express"
View Source
var Koa = "koa"
View Source
var Servers = []string{Express, Koa}
Functions ¶
func GenerateOperationResponse ¶ added in v2.2.0
func GenerateOperationResponse(w *writer.Writer, operation *spec.NamedOperation)
func GenerateService ¶
func ResponseType ¶ added in v2.2.0
func ResponseType(operation *spec.NamedOperation, servicePackage string) string
Types ¶
type Generator ¶ added in v2.2.0
type Generator struct { validations.Validation ServiceGenerator Modules *Modules }
func NewServiceGenerator ¶
func (*Generator) ParamsStaticCode ¶ added in v2.2.0
func (*Generator) ServiceApis ¶ added in v2.2.0
type Modules ¶ added in v2.2.0
type Modules struct { modules.Modules Root module.Module Params module.Module Errors module.Module Responses module.Module SpecRouter module.Module // contains filtered or unexported fields }
func NewModules ¶ added in v2.2.0
func (*Modules) ServiceApi ¶ added in v2.2.0
Click to show internal directories.
Click to hide internal directories.