service

package
v2.1.1610 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"

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 modules.Module) []sources.CodeFile

func (*Generator) ServicesInterfaces

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

type MicronautGenerator

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

func NewMicronautGenerator

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

func (*MicronautGenerator) ServiceImplAnnotation

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

func (*MicronautGenerator) ServicesControllers

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

type ServerGenerator

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

Jump to

Keyboard shortcuts

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