Documentation
¶
Index ¶
- Variables
- func ContentType(operation *spec.NamedOperation) string
- func GenerateService(specification *spec.Spec, ...) *generator.Sources
- type ChiGenerator
- type Generator
- func (g *Generator) CheckContentType() *generator.CodeFile
- func (g *Generator) ErrorResponses(errors *spec.ErrorResponses) *generator.CodeFile
- func (g *Generator) GenerateFormDataParamsParser() *generator.CodeFile
- func (g *Generator) GenerateFormUrlencodedParamsParser() *generator.CodeFile
- func (g *Generator) GenerateParamsParser() *generator.CodeFile
- func (g *Generator) HttpErrors(responses *spec.ErrorResponses) []generator.CodeFile
- func (g *Generator) Response(w *writer.Writer, operation *spec.NamedOperation)
- func (g *Generator) ResponseHelperFunctions() *generator.CodeFile
- func (g *Generator) ServicesImpls(version *spec.Version) []generator.CodeFile
- func (g *Generator) ServicesInterfaces(version *spec.Version) []generator.CodeFile
- type HttpRouterGenerator
- type Modules
- type ServerGenerator
- type VestigoGenerator
Constants ¶
This section is empty.
Variables ¶
View Source
var Chi = "chi"
View Source
var HttpRouter = "httprouter"
View Source
var Vestigo = "vestigo"
Functions ¶
func ContentType ¶ added in v2.2.0
func ContentType(operation *spec.NamedOperation) string
Types ¶
type ChiGenerator ¶ added in v2.2.0
func NewChiGenerator ¶ added in v2.2.0
func (*ChiGenerator) GenerateUrlParamsCtor ¶ added in v2.2.0
func (g *ChiGenerator) GenerateUrlParamsCtor() *generator.CodeFile
func (*ChiGenerator) RootRouting ¶ added in v2.2.0
func (g *ChiGenerator) RootRouting(specification *spec.Spec) *generator.CodeFile
type Generator ¶ added in v2.1.2134
func NewGenerator ¶ added in v2.1.2134
func (*Generator) CheckContentType ¶ added in v2.2.0
func (*Generator) ErrorResponses ¶ added in v2.2.0
func (g *Generator) ErrorResponses(errors *spec.ErrorResponses) *generator.CodeFile
func (*Generator) GenerateFormDataParamsParser ¶ added in v2.2.0
func (*Generator) GenerateFormUrlencodedParamsParser ¶ added in v2.2.0
func (*Generator) GenerateParamsParser ¶ added in v2.2.0
func (*Generator) HttpErrors ¶ added in v2.2.0
func (g *Generator) HttpErrors(responses *spec.ErrorResponses) []generator.CodeFile
func (*Generator) Response ¶ added in v2.2.0
func (g *Generator) Response(w *writer.Writer, operation *spec.NamedOperation)
func (*Generator) ResponseHelperFunctions ¶ added in v2.2.0
func (*Generator) ServicesImpls ¶ added in v2.2.0
type HttpRouterGenerator ¶ added in v2.2.0
func NewHttpRouterGenerator ¶ added in v2.2.0
func (*HttpRouterGenerator) GenerateUrlParamsCtor ¶ added in v2.2.0
func (g *HttpRouterGenerator) GenerateUrlParamsCtor() *generator.CodeFile
func (*HttpRouterGenerator) RootRouting ¶ added in v2.2.0
func (g *HttpRouterGenerator) RootRouting(specification *spec.Spec) *generator.CodeFile
type Modules ¶ added in v2.2.0
type Modules struct { models.Modules Root module.Module Empty module.Module ParamsParser module.Module Respond module.Module ContentType module.Module // contains filtered or unexported fields }
func NewModules ¶ added in v2.2.0
func (*Modules) ServicesApi ¶ added in v2.2.0
type ServerGenerator ¶ added in v2.2.0
type VestigoGenerator ¶ added in v2.1.2134
func NewVestigoGenerator ¶ added in v2.1.2134
func (*VestigoGenerator) GenerateUrlParamsCtor ¶ added in v2.2.0
func (g *VestigoGenerator) GenerateUrlParamsCtor() *generator.CodeFile
func (*VestigoGenerator) RootRouting ¶ added in v2.2.0
func (g *VestigoGenerator) RootRouting(specification *spec.Spec) *generator.CodeFile
Click to show internal directories.
Click to hide internal directories.