Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = generator.Generator{ "client-go", "Go Client", "Generate Go client source code", []generator.GeneratorArg{ {Arg: generator.ArgSpecFile, Required: true}, {Arg: generator.ArgModuleName, Required: true}, {Arg: generator.ArgGeneratePath, Required: true}, }, func(specification *spec.Spec, params generator.GeneratorArgsValues) *generator.Sources { return client.GenerateClient(specification, params[generator.ArgModuleName], params[generator.ArgGeneratePath]) }, }
View Source
var Models = generator.Generator{ "models-go", "Go Models", "Generate Go models source code", []generator.GeneratorArg{ {Arg: generator.ArgSpecFile, Required: true}, {Arg: generator.ArgModuleName, Required: true}, {Arg: generator.ArgGeneratePath, Required: true}, }, func(specification *spec.Spec, params generator.GeneratorArgsValues) *generator.Sources { return models.GenerateModels(specification, params[generator.ArgModuleName], params[generator.ArgGeneratePath]) }, }
View Source
var Service = generator.Generator{ "service-go", "Go Service", "Generate Go service source code", []generator.GeneratorArg{ {Arg: generator.ArgSpecFile, Required: true}, {Arg: generator.ArgModuleName, Required: true}, {Arg: generator.ArgSwaggerPath, Required: false}, {Arg: generator.ArgGeneratePath, Required: true}, {Arg: generator.ArgServicesPath, Required: false}, }, func(specification *spec.Spec, params generator.GeneratorArgsValues) *generator.Sources { return service.GenerateService(specification, params[generator.ArgModuleName], params[generator.ArgSwaggerPath], params[generator.ArgGeneratePath], params[generator.ArgServicesPath]) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.