Versions in this module Expand all Collapse all v1 v1.0.0 Apr 14, 2020 Changes in this version + const ContentTypeApplicationFormUrlencoded + const ContentTypeApplicationHalJson + const ContentTypeApplicationJson + const ContentTypeApplicationPDF + const ContentTypeApplicationXMLPattern + const ContentTypeImageGif + const ContentTypeImageJpeg + const ContentTypeImagePng + const ContentTypeImageSvgXml + const ContentTypeImageTiff + const ContentTypeImageWebp + const ContentTypeImageXIcon + const ContentTypeMultipartFormData + const ContentTypeTextHTML + const ContentTypeTextPlain + var ContentTypesForFiles []string = []string + func GoProject(dir, pckg string) error + func NewGoClientGenerator(spec *openapi.Spec) *goClientGenerator + func NewGoHandlersGenerator(spec *openapi.Spec) *goHandlersGenerator + func NewGoServerGenerator(spec *openapi.Spec) *goServerGenerator + func NewGoServiceGenerator(spec *openapi.Spec) *goServicesGenerator + func NewGoTypesGenerator(spec *openapi.Spec) *goTypesGenerator + type ApiGenerator struct + func (gen *ApiGenerator) Generate(path, pkg string, generatePrometheus bool) error + type ApiMockGenerator struct + func (gen *ApiMockGenerator) Generate(path, pkg string, generatePrometheus bool) error + type ClientApiGenerator struct + func (gen *ClientApiGenerator) Generate(path, pkg string, generatePrometheus bool) error + type ClientApiMockGenerator struct + func (gen *ClientApiMockGenerator) Generate(path, pkg string, generatePrometheus bool) error + type Generator interface + Generate func(path string, pkg string, generatePrometheus bool) error + func NewGoAPIGenerator(spec *openapi.Spec) Generator + func NewGoAPIMockGenerator(spec *openapi.Spec) Generator + func NewGoClientAPIGenerator(spec *openapi.Spec) Generator + func NewGoClientAPIMockGenerator(spec *openapi.Spec) Generator + func NewGoServerAPIGenerator(spec *openapi.Spec) Generator + func NewGoServerAPIMockGenerator(spec *openapi.Spec) Generator + type GoClientMockGenerator struct + func NewGoClientMockGenerator(spec *openapi.Spec) *GoClientMockGenerator + func (gen *GoClientMockGenerator) Generate(path, pckg string) error + type GoGenerator struct + Spec *openapi.Spec + func NewGoGenerator(spec *openapi.Spec) *GoGenerator + func (gen *GoGenerator) ConvertMapToSecuritySchemeSlice(security []map[string][]string) []spec.SecurityScheme + func (gen *GoGenerator) PopulateParametersBucket(bucket *ParametersBucket, parameters []spec.Parameter, ...) (*ParametersBucket, error) + func (gen *GoGenerator) WalkOperations(handler func(operation *Operation) error) error + type Library struct + Alias string + Import string + type Operation struct + Consumes []string + Method string + Path *spec.PathItem + Produces []string + Route string + func (o *Operation) HasConsume(c string) bool + func (o *Operation) HasConsumes(cs ...string) bool + func (o *Operation) HasProduce(p string) bool + func (o *Operation) HasProduces(ps ...string) bool + func (o *Operation) HasValidConsumes() bool + func (o *Operation) HasValidProduces() bool + func (o *Operation) RegexHasProduces(pattern string) bool + type ParametersBucket struct + Body []*spec.Parameter + FormData []*spec.Parameter + FormDataFiles []*spec.Parameter + HasBody bool + HasFormData bool + HasURLEncoded bool + Header []*spec.Parameter + Path []*spec.Parameter + Query []*spec.Parameter + Security []spec.SecurityScheme + func NewParameterBucket(HasURLEncoded bool) *ParametersBucket + type ServerApiGenerator struct + func (gen *ServerApiGenerator) Generate(path, pkg string, generatePrometheus bool) error + type ServerApiMockGenerator struct + func (gen *ServerApiMockGenerator) Generate(path, pkg string, generatePrometheus bool) error + type ValidatorMap map[string]string + func NewValidatorMap() ValidatorMap + func (m ValidatorMap) Add(v *types.RegexValidator) + func (m ValidatorMap) AddAll(v []*types.RegexValidator)