swagger

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator is for generating swagger specifications.

func NewDefaultGenerator

func NewDefaultGenerator(
	config *project.Config,
	apis *api.Definitions,
) *Generator

NewDefaultGenerator creates a swagger generator with default mappings.

func NewGenerator

func NewGenerator(
	config *project.Config,
	apis *api.Definitions,
	sourceMapping map[definition.Source]string,
	destinationMapping map[definition.Destination]string,
) *Generator

NewGenerator creates a swagger generator.

func (*Generator) Generate

func (g *Generator) Generate() ([]spec.Swagger, error)

Generate generates swagger specifications.

Jump to

Keyboard shortcuts

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