commongenerator

package
v0.0.0-...-16115fa Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GeneratorTypeClient shows this generator generates a client
	GeneratorTypeClient = GeneratorType(iota)
	// GeneratorTypeServer shows this generator generates a server
	GeneratorTypeServer = GeneratorType(iota)
	// GeneratorTypeDocumentation shows this generator generates documentation
	GeneratorTypeDocumentation = GeneratorType(iota)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	//Generate a client in the given output folder with the given swagger specification and options
	Generate(swagger *openapi3.Swagger, outputLocation string, options string)

	// GetType returns the generator type of this generator
	GetType() GeneratorType
}

Generator is a common interface for generators to take a yaml or other file and generate a client

type GeneratorType

type GeneratorType uint8

GeneratorType Represents a generator type

Jump to

Keyboard shortcuts

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