service

package
v2.1.2123-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Express = "express"
View Source
var Koa = "koa"
View Source
var Servers = []string{Express, Koa}

Functions

func GenerateService

func GenerateService(specification *spec.Spec, swaggerPath string, generatePath string, servicesPath string, server string, validationName string) *generator.Sources

Types

type ServiceGenerator

type ServiceGenerator interface {
	VersionRouting(version *spec.Version, targetModule modules.Module, modelsModule, validationModule, paramsModule, errorsModule, responsesModule modules.Module) *generator.CodeFile
	SpecRouter(specification *spec.Spec, rootModule modules.Module, module modules.Module) *generator.CodeFile
	Responses(targetModule, validationModule, errorsModule modules.Module) *generator.CodeFile
}

func NewServiceGenerator

func NewServiceGenerator(server string, validation validations.Validation) ServiceGenerator

Jump to

Keyboard shortcuts

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