service

package
v2.1.1608 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Micronaut = "micronaut"
View Source
var Spring = "spring"

Functions

func Generate

func Generate(specification *spec.Spec, jsonlib, server, packageName, swaggerPath, generatePath, servicesPath string) *sources.Sources

Types

type Generator

type Generator struct {
	Jsonlib string
	Types   *types.Types
	Models  models.Generator
	Server  ServerGenerator
}

func NewGenerator

func NewGenerator(jsonlib, server string) *Generator

func (*Generator) ServicesImplementations

func (g *Generator) ServicesImplementations(version *spec.Version, thePackage, modelsVersionPackage, servicesVersionPackage packages.Module) []sources.CodeFile

func (*Generator) ServicesInterfaces

func (g *Generator) ServicesInterfaces(version *spec.Version, thePackage, modelsVersionPackage packages.Module) []sources.CodeFile

type MicronautGenerator added in v2.1.1571

type MicronautGenerator struct {
	Types  *types.Types
	Models models.Generator
}

func NewMicronautGenerator added in v2.1.1571

func NewMicronautGenerator(types *types.Types, models models.Generator) *MicronautGenerator

func (*MicronautGenerator) ServiceImplAnnotation added in v2.1.1571

func (m *MicronautGenerator) ServiceImplAnnotation(api *spec.Api) (annotationImport, annotation string)

func (*MicronautGenerator) ServicesControllers added in v2.1.1571

func (m *MicronautGenerator) ServicesControllers(version *spec.Version, mainPackage, thePackage, jsonPackage, modelsVersionPackage, serviceVersionPackage packages.Module) []sources.CodeFile

type ServerGenerator added in v2.1.1561

type ServerGenerator interface {
	ServicesControllers(version *spec.Version, mainPackage, thePackage, jsonPackage, modelsVersionPackage, serviceVersionPackage packages.Module) []sources.CodeFile
	ServiceImplAnnotation(api *spec.Api) (annotationImport, annotation string)
}

type SpringGenerator added in v2.1.1561

type SpringGenerator struct {
	Types  *types.Types
	Models models.Generator
}

func NewSpringGenerator added in v2.1.1561

func NewSpringGenerator(types *types.Types, models models.Generator) *SpringGenerator

func (*SpringGenerator) ServiceImplAnnotation added in v2.1.1571

func (s *SpringGenerator) ServiceImplAnnotation(api *spec.Api) (annotationImport, annotation string)

func (*SpringGenerator) ServicesControllers added in v2.1.1561

func (s *SpringGenerator) ServicesControllers(version *spec.Version, mainPackage, thePackage, jsonPackage, modelsVersionPackage, serviceVersionPackage packages.Module) []sources.CodeFile

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL