swagger

package
v0.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 11 Imported by: 7

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() (map[string]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