generator

package
v0.0.0-...-fffbde2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpMethodAnnotations = map[string]string{
	consts.ApiGet:     "GET",
	consts.ApiPost:    "POST",
	consts.ApiPut:     "PUT",
	consts.ApiPatch:   "PATCH",
	consts.ApiDelete:  "DELETE",
	consts.ApiOptions: "OPTIONS",
	consts.ApiHEAD:    "HEAD",
	consts.ApiAny:     "ANY",
}

Functions

This section is empty.

Types

type OpenAPIGenerator

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

func NewOpenAPIGenerator

func NewOpenAPIGenerator(ast *parser.Thrift) *OpenAPIGenerator

NewOpenAPIGenerator creates a new generator for a protoc plugin invocation.

func (*OpenAPIGenerator) BuildDocument

func (g *OpenAPIGenerator) BuildDocument(arguments *args.Arguments) []*plugin.Generated

Jump to

Keyboard shortcuts

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