service

package
v2.1.1348 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 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) *sources.Sources

Types

type ServiceGenerator added in v2.1.1326

type ServiceGenerator interface {
	VersionRouting(version *spec.Version, validationModule, paramsModule, module modules.Module) *sources.CodeFile
	SpecRouter(specification *spec.Spec, rootModule modules.Module, module modules.Module) *sources.CodeFile
}

func NewServiceGenerator added in v2.1.1326

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