generator

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GrpcClient *bool
View Source
var GrpcServer *bool

Functions

This section is empty.

Types

type Generator

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

Generator holds internal state needed to generate an OpenAPIv3 document for a transcoded Protocol Buffer service.

func NewGenerator

func NewGenerator(
	plugin *protogen.Plugin,
	inputFile *protogen.File,
	outputFile *protogen.GeneratedFile,
	openAPIv3Generator *generator.OpenAPIv3Generator,
) *Generator

NewGenerator creates a new generator for a protoc plugin invocation.

func (*Generator) OutputFile

func (g *Generator) OutputFile() *protogen.GeneratedFile

func (*Generator) PrintBodyParameters

func (g *Generator) PrintBodyParameters(body string, bodyDoc *openapi_v3.RequestBodyOrReference)

func (*Generator) Run

func (g *Generator) Run() error

Run runs the generator.

Jump to

Keyboard shortcuts

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